summaryrefslogtreecommitdiffstats
path: root/fs/autofs4/inode.c
diff options
context:
space:
mode:
authorMiklos Szeredi2014-01-24 00:54:58 +0100
committerLinus Torvalds2014-01-24 01:36:59 +0100
commitfbff08706d12fcdb160604c4ba790df6707c32cb (patch)
tree0d04ed6125de1dca536105046bc98aefc97773b7 /fs/autofs4/inode.c
parentautofs4: allow autofs to work outside the initial PID namespace (diff)
downloadkernel-qcow2-linux-fbff08706d12fcdb160604c4ba790df6707c32cb.tar.gz
kernel-qcow2-linux-fbff08706d12fcdb160604c4ba790df6707c32cb.tar.xz
kernel-qcow2-linux-fbff08706d12fcdb160604c4ba790df6707c32cb.zip
autofs4: translate pids to the right namespace for the daemon
The PID and the TGID of the process triggering the mount are sent to the daemon. Currently the global pid values are sent (ones valid in the initial pid namespace) but this is wrong if the autofs daemon itself is not running in the initial pid namespace. So send the pid values that are valid in the namespace of the autofs daemon. The namespace to use is taken from the oz_pgrp pid pointer, which was set at mount time to the mounting process' pid namespace. If the pid translation fails (the triggering process is in an unrelated pid namespace) then the automount fails with ENOENT. Signed-off-by: Miklos Szeredi <mszeredi@suse.cz> Acked-by: Serge Hallyn <serge.hallyn@canonical.com> Cc: Eric Biederman <ebiederm@xmission.com> Acked-by: Ian Kent <raven@themaw.net> Cc: Oleg Nesterov <oleg@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/autofs4/inode.c')
0 files changed, 0 insertions, 0 deletions