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_ifs/mount.c | |
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_ifs/mount.c')
-rw-r--r-- | sbin/mount_ifs/mount.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sbin/mount_ifs/mount.c b/sbin/mount_ifs/mount.c index be4b75a..00fc842 100644 --- a/sbin/mount_ifs/mount.c +++ b/sbin/mount_ifs/mount.c @@ -42,7 +42,7 @@ static const char copyright[] = static char sccsid[] = "@(#)mount.c 8.25 (Berkeley) 5/8/95"; #else static const char rcsid[] = - "$Id: mount.c,v 1.23 1998/03/08 09:56:02 julian Exp $"; + "$Id: mount.c,v 1.24 1998/03/27 10:52:13 peter Exp $"; #endif #endif /* not lint */ @@ -91,6 +91,7 @@ static struct opt { { MNT_NODEV, "nodev" }, { MNT_NOEXEC, "noexec" }, { MNT_NOSUID, "nosuid" }, + { MNT_NOSYMFOLLOW, "nosymfollow" }, { MNT_QUOTA, "with quotas" }, { MNT_RDONLY, "read-only" }, { MNT_SYNCHRONOUS, "synchronous" }, @@ -607,6 +608,8 @@ putfsent(ent) printf(",noclusterr"); if (ent->f_flags & MNT_NOCLUSTERW) printf(",noclusterw"); + if (ent->f_flags & MNT_NOSYMFOLLOW) + printf (",nosymfollow"); if (ent->f_flags & MNT_SUIDDIR) printf(",suiddir"); |