summaryrefslogtreecommitdiffstats
path: root/sbin/mount/mount.c
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>1997-11-13 00:28:51 +0000
committerjulian <julian@FreeBSD.org>1997-11-13 00:28:51 +0000
commitc931d11d3fc12ba491ad39463aa11df49dc1f688 (patch)
tree731c9e2cfdec42868e147077d821a150139c2303 /sbin/mount/mount.c
parent68d89b19d4172e0605feb73e4248bc41aec9a5f9 (diff)
downloadFreeBSD-src-c931d11d3fc12ba491ad39463aa11df49dc1f688.zip
FreeBSD-src-c931d11d3fc12ba491ad39463aa11df49dc1f688.tar.gz
Reviewed by: hackers@freebsd.org in general
Obtained from: Whistle Communications tree Add an option to the way UFS works dependent on the SUID bit of directories This changes makes things a whole lot simpler on systems running as fileservers for PCs and MACS. to enable the new code you must 1/ enable option SUIDDIR on the kernel. 2/ mount the filesystem with option suiddir. hopefully this makes it difficult enough for people to do this accidentally. see the new chmod(2) man page for detailed info.
Diffstat (limited to 'sbin/mount/mount.c')
-rw-r--r--sbin/mount/mount.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sbin/mount/mount.c b/sbin/mount/mount.c
index c9b23ac..9c28f2e 100644
--- a/sbin/mount/mount.c
+++ b/sbin/mount/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.19 1997/08/24 21:02:49 steve Exp $";
+ "$Id: mount.c,v 1.20 1997/09/27 13:44:17 kato Exp $";
#endif
#endif /* not lint */
@@ -97,6 +97,7 @@ static struct opt {
{ MNT_UNION, "union" },
{ MNT_NOCLUSTERR, "noclusterr" },
{ MNT_NOCLUSTERW, "noclusterw" },
+ { MNT_SUIDDIR, "suiddir" },
{ NULL }
};
OpenPOWER on IntegriCloud