summaryrefslogtreecommitdiff
path: root/lib/is_single_threaded.c
diff options
context:
space:
mode:
authorMiklos Szeredi <mszeredi@suse.cz>2010-02-10 12:15:53 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2010-07-05 11:16:09 -0700
commit7ab3c6bcc33237784b5dd8ef86062d488fd65576 (patch)
treec1c7d87f17740de1d82fc19a15583746afdfdd27 /lib/is_single_threaded.c
parent8c11d9038537657cc74fb8d2242fd18c3d6a05d5 (diff)
downloadlinux-stable-7ab3c6bcc33237784b5dd8ef86062d488fd65576.tar.gz
vfs: add NOFOLLOW flag to umount(2)
commit db1f05bb85d7966b9176e293f3ceead1cb8b5d79 upstream. Add a new UMOUNT_NOFOLLOW flag to umount(2). This is needed to prevent symlink attacks in unprivileged unmounts (fuse, samba, ncpfs). Additionally, return -EINVAL if an unknown flag is used (and specify an explicitly unused flag: UMOUNT_UNUSED). This makes it possible for the caller to determine if a flag is supported or not. CC: Eugene Teo <eugene@redhat.com> CC: Michael Kerrisk <mtk.manpages@gmail.com> Signed-off-by: Miklos Szeredi <mszeredi@suse.cz> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'lib/is_single_threaded.c')
0 files changed, 0 insertions, 0 deletions