]> git.baikalelectronics.ru Git - kernel.git/commit
proc: Better ownership of files for non-dumpable tasks in user namespaces
authorEric W. Biederman <ebiederm@xmission.com>
Mon, 2 Jan 2017 21:23:11 +0000 (10:23 +1300)
committerEric W. Biederman <ebiederm@xmission.com>
Mon, 23 Jan 2017 23:03:09 +0000 (12:03 +1300)
commit7a88d31fd194dfb383ca1372e2dbec5060b259ea
tree2dfcf480bbfce233747c6d7d40a120850f1256a2
parentb00907e1db6f33a2421a5f66345beedddefffe4f
proc: Better ownership of files for non-dumpable tasks in user namespaces

Instead of making the files owned by the GLOBAL_ROOT_USER.  Make
non-dumpable files whose mm has always lived in a user namespace owned
by the user namespace root.  This allows the container root to have
things work as expected in a container.

Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
fs/proc/base.c
fs/proc/fd.c
fs/proc/internal.h