summaryrefslogtreecommitdiffstats
path: root/lib/string.c
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2012-08-14 21:25:13 -0700
committerEric W. Biederman <ebiederm@xmission.com>2012-11-20 04:18:55 -0800
commitc450f371d48557e3e0fa510a4af27b92f0d8c4cc (patch)
tree7dd5e7c8288d08e47108692664294be27f9b6b8f /lib/string.c
parente9f238c3041e2582a710e75910c8cbf2a98e51b2 (diff)
downloadop-kernel-dev-c450f371d48557e3e0fa510a4af27b92f0d8c4cc.zip
op-kernel-dev-c450f371d48557e3e0fa510a4af27b92f0d8c4cc.tar.gz
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 'lib/string.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud