Skip to content

mount namespace container enhancements

Eric W. Biederman containers linux-fsdevel lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6vfs: Allow chroot if you have CAP_SYS_CHROOT in your user namespacefs/open.c+1 -10 replies
2/6vfs: Add setns support for the mount namespacefs/mount.h fs/namespace.c fs/proc/namespaces.c +1 more+108 -00 replies
3/6vfs: Add a user namespace reference from struct mnt_namespacefs/mount.h fs/namespace.c include/linux/mnt_namespace.h +1 more+20 -100 replies
4/6vfs: Only support slave subtrees across different user namespacesfs/namespace.c fs/pnode.h+9 -30 replies
5/6vfs: Allow unprivileged manipulation of the mount namespace.fs/namespace.c include/linux/fs.h+45 -260 replies
6/6userns: fix return value on mntns_install() failurefs/namespace.c+1 -10 replies

Reviews trailers per patch

5 of 6 patches have a Reviewed-by or Acked-by.

PatchSerge HallynSerge E. Hallyn
1/6A-b
2/6A-b
3/6A-b
4/6A-b
5/6A-b
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH review 0/6] mount namespace container enhancements

This patchset adds the ability for the root user in a user namespace to call choort, to create new mount namespaces, and to manipulate mount namespaces (mount/umount) that the userns root has created.

Additionally support is added namespace file descriptors and for setns on the namespace file descriptors.

To keep total chaos from breaking out mount namespace file descriptors are not allowed to be mounted into a child mount namespace, and shared subtrees become slave subtrees when creating a new mount namespace in a different user namespace than it's parent.

This series of changes is available in git from:
git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace.git mntns-v53

Baring problems I plan to merge these changes through my user namespace tree for 3.8

Eric W. Biederman (5):
vfs: Allow chroot if you have CAP_SYS_CHROOT in your user namespace
vfs: Add setns support for the mount namespace
vfs: Add a user namespace reference from struct mnt_namespace
vfs: Only support slave subtrees across different user namespaces
vfs: Allow unprivileged manipulation of the mount namespace.

Zhao Hongjiang (1):
userns: fix return value on mntns_install() failure

 fs/mount.h                    |    2 +
 fs/namespace.c                |  197 +++++++++++++++++++++++++++++++++--------
 fs/open.c                     |    2 +-
 fs/pnode.h                    |    1 +
 fs/proc/namespaces.c          |    5 +
 include/linux/fs.h            |    2 +
 include/linux/mnt_namespace.h |    3 +-
 include/linux/proc_fs.h       |    7 ++
 kernel/nsproxy.c              |    2 +-
 9 files changed, 182 insertions(+), 39 deletions(-)