user namespace and namespace infrastructure completion
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest16 patches 10 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/16 | userns: Ignore suid and sgid on binaries if the uid or gid can not be mappedfs/ | +3 | 2 replies | |
| 2/16 | userns: Allow unprivileged users to create user namespaces.kernel/ | +0 | 0 replies | |
| 3/16 | userns: Allow chown and setgid preservationfs/ | +7 | 1 reply | |
| 4/16 | userns: Allow setting a userns mapping to your current uid.kernel/ | +15 | 0 replies | |
| 5/16 | userns: Allow unprivileged users to create new namespaceskernel/ | +3 | 0 replies | |
| 6/16 | userns: Allow unprivileged use of setns.ipc/ kernel/ kernel/ +1 more | +17 | 0 replies | |
| 7/16 | userns: Make create_new_namespaces take a user_ns parameterinclude/ include/ ipc/ +2 more | +28 | 0 replies | |
| 8/16 | userns: Kill task_user_nsinclude/ kernel/ kernel/ +1 more | +25 | 1 reply | |
| 9/16 | userns: Implent proc namespace operationsfs/ include/ kernel/ | +78 | 0 replies | |
| 10/16 | userns: Implement unshare of the user namespaceinclude/ include/ kernel/ +2 more | +51 | 0 replies | |
| 11/16 | procfs: Print task uids and gids in the userns that opened the proc filefs/ | +1 | 1 reply | |
| 12/16 | userns: For /proc/self/{uid,gid}_map derive the lower userns from the struct filekernel/ | +10 | 6 replies | |
| 13/16 | userns: Allow unprivilged mounts of proc and sysfsfs/ fs/ | +2 | 0 replies | |
| 14/16 | proc: Generalize proc inode allocationfs/ include/ | +23 | 1 reply | |
| 15/16 | proc: Fix the namespace inode permission checks.fs/ fs/ | +152 | 0 replies | |
| 16/16 | proc: Usable inode numbers for the namespace file descriptors.fs/ fs/ fs/ +15 more | +132 | 0 replies |
Reviews trailers per patch
14 of 16 patches have a Reviewed-by or Acked-by.
| Patch | Serge Hallyn | Serge E. Hallyn | Kees Cook |
|---|---|---|---|
| 1/16 | A-b A-b A-b | ||
| 2/16 | A-b | ||
| 3/16 | A-b | ||
| 4/16 | A-b | ||
| 5/16 | A-b | ||
| 6/16 | A-b | ||
| 7/16 | A-b | ||
| 8/16 | A-b | A-b | |
| 9/16 | A-b | ||
| 10/16 | A-b | ||
| 11/16 | A-b | ||
| 12/16 | A-b | ||
| 13/16 | A-b | ||
| 14/16 | A-b | ||
| 15/16 | |||
| 16/16 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.
Cover letter [PATCH review 0/16] user namespace and namespace infrastructure completion
The following series of changes completes the user namespace and adds the much too long delay bits of namespace infrastructure.
This series of changes adds unprivilged creation of all namespaces support for creating a user namespace with unshare, and support for entering a user namespace with setns.
The proc namespace files are converted into magic symlinks to avoid problems with dentry caching excessively keeping a namespace alive and dentry caching allowing the ptrace_may_access checks to be bypassed.
The proc namespace now have inode numbers that are always the same for the same user namespace allowing stat to test if two file descriptors refer to the same namespace.
Eric W. Biederman (16):
userns: Ignore suid and sgid on binaries if the uid or gid can not be mapped
userns: Allow unprivileged users to create user namespaces.
userns: Allow chown and setgid preservation
userns: Allow setting a userns mapping to your current uid.
userns: Allow unprivileged users to create new namespaces
userns: Allow unprivileged use of setns.
userns: Make create_new_namespaces take a user_ns parameter
userns: Kill task_user_ns
userns: Implent proc namespace operations
userns: Implement unshare of the user namespace
procfs: Print task uids and gids in the userns that opened the proc file
userns: For /proc/self/{uid,gid}_map derive the lower userns from the struct file
userns: Allow unprivilged mounts of proc and sysfs
proc: Generalize proc inode allocation
proc: Fix the namespace inode permission checks.
proc: Usable inode numbers for the namespace file descriptors.
fs/attr.c | 11 ++- fs/exec.c | 9 +-- fs/mount.h | 1 + fs/namespace.c | 14 +++ fs/proc/array.c | 2 +- fs/proc/generic.c | 26 +++--- fs/proc/inode.c | 6 +- fs/proc/namespaces.c | 177 +++++++++++++++++++++++++++++++++++----- fs/proc/root.c | 1 + fs/sysfs/mount.c | 1 + include/linux/cred.h | 2 - include/linux/ipc_namespace.h | 9 ++- include/linux/nsproxy.h | 2 +- include/linux/pid_namespace.h | 1 + include/linux/proc_fs.h | 18 ++++- include/linux/user_namespace.h | 10 ++ include/linux/utsname.h | 7 +- include/net/net_namespace.h | 2 + init/version.c | 2 + ipc/msgutil.c | 2 + ipc/namespace.c | 32 ++++++-- kernel/fork.c | 33 +++++--- kernel/nsproxy.c | 34 ++++---- kernel/pid.c | 1 + kernel/pid_namespace.c | 12 +++ kernel/ptrace.c | 10 ++- kernel/sched/core.c | 10 ++- kernel/user.c | 2 + kernel/user_namespace.c | 147 +++++++++++++++++++++++++++++---- kernel/utsname.c | 33 ++++++-- net/core/net_namespace.c | 31 +++++++- security/yama/yama_lsm.c | 12 ++- 32 files changed, 535 insertions(+), 125 deletions(-)