Miklos Szeredi db1f05bb85 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 <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>
2010-03-03 14:08:00 -05:00
..
2010-01-26 22:22:25 -05:00
2009-12-10 15:02:50 +01:00
2010-02-07 03:06:21 -05:00
2010-01-26 22:22:25 -05:00
2010-01-14 09:05:42 -05:00
2010-01-19 22:36:06 -06:00
2009-06-17 00:36:36 -04:00
2009-07-12 12:22:34 -07:00
2010-03-03 13:00:22 -05:00
2009-12-15 08:53:10 -08:00
2009-12-22 12:27:35 -05:00
2010-03-03 14:07:57 -05:00
2009-12-17 11:03:25 -05:00
2009-12-16 07:20:18 -08:00
2010-01-26 22:22:26 -05:00
2009-06-17 00:36:37 -04:00
2010-03-03 14:07:58 -05:00
2009-12-16 07:20:13 -08:00
2009-12-22 12:27:34 -05:00
2009-09-24 08:41:47 -04:00
2008-12-31 18:07:43 -05:00
2009-09-24 07:21:03 -07:00
2009-12-17 04:52:13 -05:00
2010-02-07 10:26:01 -08:00
2009-12-17 11:03:25 -05:00
2010-03-03 14:07:59 -05:00
2009-04-07 08:31:16 -07:00
2010-03-03 14:07:56 -05:00
2009-12-17 10:51:40 -05:00
2009-10-04 15:05:10 -07:00
2010-03-03 14:08:00 -05:00
2009-12-16 12:16:49 -05:00