Skip to content

miscelaneous user namespace patches

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 32 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6userns: Avoid recursion in put_user_nsinclude/linux/user_namespace.h kernel/user.c kernel/user_namespace.c+15 -164 replies
2/6userns: Allow any uid or gid mappings that don't overlap.kernel/user_namespace.c+39 -66 replies
3/6userns: Recommend use of memory control groups.Documentation/namespaces/resource-control.txt init/Kconfig+17 -013 replies
4/6userns: Allow the userns root to mount of devptsfs/devpts/inode.c+18 -01 reply
5/6userns: Allow the userns root to mount ramfs.fs/ramfs/inode.c+1 -05 replies
6/6userns: Allow the userns root to mount tmpfs.mm/shmem.c+2 -03 replies

Reviews trailers per patch

All 6 patches have a Reviewed-by or Acked-by.

PatchVasily KulikovSerge HallynGao fengSomeone
1/6Pointed-out-by A-b A-b A-b
2/6A-b A-b A-b
3/6A-b
4/6A-b
5/6A-b A-b
6/6A-b A-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v1 thread

Cover letter [PATCH review 0/6] miscelaneous user namespace patches

Now that I have done my worst to infect user space with some basic tools for using user namespaces, this is my first round of patches aimed at the 3.9 merge window.

This documents that if you care about limit resources you want to configure the memory control group when user namespaces are enabled.

This enables the user namespace root to mount devpts, ramfs and tmpfs. Functionality that is needed for practical uses of the user namespace.

This includes my patch to enable more flexibility into the input allowed in uid_map and gid_map.

 Documentation/namespaces/resource-control.txt |   10 ++++
 fs/devpts/inode.c                             |   18 +++++++
 fs/ramfs/inode.c                              |    1 +
 include/linux/user_namespace.h                |   10 ++--
 init/Kconfig                                  |    7 +++
 kernel/user.c                                 |    4 +-
 kernel/user_namespace.c                       |   62 +++++++++++++++++++------
 mm/shmem.c                                    |    2 +
 8 files changed, 92 insertions(+), 22 deletions(-)

Eric W. Biederman (6):
userns: Avoid recursion in put_user_ns
userns: Allow any uid or gid mappings that don't overlap.
userns: Recommend use of memory control groups.
userns: Allow the userns root to mount of devpts
userns: Allow the userns root to mount ramfs.
userns: Allow the userns root to mount tmpfs.