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)
commit68eb94f16227336a5773b83ecfa8290f1d6b78ce
tree2dfcf480bbfce233747c6d7d40a120850f1256a2
parent9227dd2a84a765fcfef1677ff17de0958b192eda
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