summaryrefslogtreecommitdiff
path: root/fs/hfs
diff options
context:
space:
mode:
authorMiklos Szeredi <miklos@szeredi.hu>2014-01-23 23:54:58 (GMT)
committerLinus Torvalds <torvalds@linux-foundation.org>2014-01-24 00:36:59 (GMT)
commitfbff08706d12fcdb160604c4ba790df6707c32cb (patch)
tree0d04ed6125de1dca536105046bc98aefc97773b7 /fs/hfs
parent6eaba35b437438988078efc92f1ef445a00cd7bc (diff)
downloadlinux-fbff08706d12fcdb160604c4ba790df6707c32cb.tar.xz
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/hfs')
0 files changed, 0 insertions, 0 deletions