summaryrefslogtreecommitdiffstats
path: root/fs/proc/root.c
diff options
context:
space:
mode:
authorEric W. Biederman2012-08-15 06:25:13 +0200
committerEric W. Biederman2012-11-20 13:18:55 +0100
commitc450f371d48557e3e0fa510a4af27b92f0d8c4cc (patch)
tree7dd5e7c8288d08e47108692664294be27f9b6b8f /fs/proc/root.c
parentprocfs: Print task uids and gids in the userns that opened the proc file (diff)
downloadkernel-qcow2-linux-c450f371d48557e3e0fa510a4af27b92f0d8c4cc.tar.gz
kernel-qcow2-linux-c450f371d48557e3e0fa510a4af27b92f0d8c4cc.tar.xz
kernel-qcow2-linux-c450f371d48557e3e0fa510a4af27b92f0d8c4cc.zip
userns: For /proc/self/{uid,gid}_map derive the lower userns from the struct file
To keep things sane in the context of file descriptor passing derive the user namespace that uids are mapped into from the opener of the file instead of from current. When writing to the maps file the lower user namespace must always be the parent user namespace, or setting the mapping simply does not make sense. Enforce that the opener of the file was in the parent user namespace or the user namespace whose mapping is being set. Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com> Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Diffstat (limited to 'fs/proc/root.c')
0 files changed, 0 insertions, 0 deletions