diff options
author | wosch <wosch@FreeBSD.org> | 1998-04-08 18:31:59 +0000 |
---|---|---|
committer | wosch <wosch@FreeBSD.org> | 1998-04-08 18:31:59 +0000 |
commit | e3aed302321145d529c56b0e1bfa93e1bfa4ce80 (patch) | |
tree | e40cc095a20b846e3f09e3cfde10b30c094504ef /sbin/mount/mntopts.h | |
parent | 4c738b0efc841088a79d0a7bd37d6617f0b37f4b (diff) | |
download | FreeBSD-src-e3aed302321145d529c56b0e1bfa93e1bfa4ce80.zip FreeBSD-src-e3aed302321145d529c56b0e1bfa93e1bfa4ce80.tar.gz |
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).
Diffstat (limited to 'sbin/mount/mntopts.h')
-rw-r--r-- | sbin/mount/mntopts.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sbin/mount/mntopts.h b/sbin/mount/mntopts.h index d9402cf..e78518a 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, \ |