From: Miklos Szeredi Date: Wed, 10 Feb 2010 11:15:53 +0000 (+0100) Subject: vfs: add NOFOLLOW flag to umount(2) X-Git-Tag: v2.6.34-rc1~205^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=db1f05bb85d7966b9176e293f3ceead1cb8b5d79;p=pandora-kernel.git vfs: add NOFOLLOW flag to umount(2) 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 CC: Michael Kerrisk Signed-off-by: Miklos Szeredi Signed-off-by: Al Viro --- Reading git-diff-tree failed