aboutsummaryrefslogtreecommitdiff
path: root/sbin/mount/mntopts.h
diff options
context:
space:
mode:
authorWolfram Schneider <wosch@FreeBSD.org>1998-04-08 18:31:59 +0000
committerWolfram Schneider <wosch@FreeBSD.org>1998-04-08 18:31:59 +0000
commit5ddc8ded1dbe650b7d83240a1f86a1eb6e2b9b5a (patch)
tree8c2d1bd63f6fe85fd09d4107b33e303dcaaaa6e7 /sbin/mount/mntopts.h
parent9d24fe0e45513af5b8eb8351fc40766c6f7bbf31 (diff)
downloadsrc-5ddc8ded1dbe650b7d83240a1f86a1eb6e2b9b5a.tar.gz
src-5ddc8ded1dbe650b7d83240a1f86a1eb6e2b9b5a.zip
New mount option nosymfollow. If enabled, the kernel lookup()
function will not follow symbolic links on the mounted file system and return EACCES (Permission denied).
Notes
Notes: svn path=/head/; revision=35105
Diffstat (limited to 'sbin/mount/mntopts.h')
-rw-r--r--sbin/mount/mntopts.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sbin/mount/mntopts.h b/sbin/mount/mntopts.h
index d9402cf4e0ed..e78518a377bb 100644
--- a/sbin/mount/mntopts.h
+++ b/sbin/mount/mntopts.h
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)mntopts.h 8.7 (Berkeley) 3/29/95
- * $Id: mntopts.h,v 1.11 1997/09/27 13:44:08 kato Exp $
+ * $Id: mntopts.h,v 1.12 1997/11/13 00:28:48 julian Exp $
*/
struct mntopt {
@@ -47,6 +47,7 @@ struct mntopt {
#define MOPT_NODEV { "dev", 1, MNT_NODEV, 0 }
#define MOPT_NOEXEC { "exec", 1, MNT_NOEXEC, 0 }
#define MOPT_NOSUID { "suid", 1, MNT_NOSUID, 0 }
+#define MOPT_NOSYMFOLLOW { "symfollow", 1, MNT_NOSYMFOLLOW, 0 }
#define MOPT_RDONLY { "rdonly", 0, MNT_RDONLY, 0 }
#define MOPT_SYNC { "sync", 0, MNT_SYNCHRONOUS, 0 }
#define MOPT_UNION { "union", 0, MNT_UNION, 0 }
@@ -80,6 +81,7 @@ struct mntopt {
MOPT_NOEXEC, \
MOPT_SUIDDIR, /* must be before MOPT_NOSUID */ \
MOPT_NOSUID, \
+ MOPT_NOSYMFOLLOW, \
MOPT_RDONLY, \
MOPT_UNION, \
MOPT_NOCLUSTERR, \