aboutsummaryrefslogtreecommitdiff
path: root/sbin/mount/mntopts.h
diff options
context:
space:
mode:
authorJulian Elischer <julian@FreeBSD.org>1997-11-13 00:28:51 +0000
committerJulian Elischer <julian@FreeBSD.org>1997-11-13 00:28:51 +0000
commit52bf64c7878f577be7fefbf5be4e638977da95e2 (patch)
tree517e71229ad99537fc653a54b10319926fc4f944 /sbin/mount/mntopts.h
parenta272e47d504257bb30e6fe4babcf3e4a9956734f (diff)
downloadsrc-52bf64c7878f577be7fefbf5be4e638977da95e2.tar.gz
src-52bf64c7878f577be7fefbf5be4e638977da95e2.zip
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.
Notes
Notes: svn path=/head/; revision=31144
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 5175070287bb..d9402cf4e0ed 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.10 1997/08/25 21:02:21 bde Exp $
+ * $Id: mntopts.h,v 1.11 1997/09/27 13:44:08 kato Exp $
*/
struct mntopt {
@@ -54,6 +54,7 @@ struct mntopt {
#define MOPT_GROUPQUOTA { "groupquota", 0, 0, 0 }
#define MOPT_NOCLUSTERR { "clusterr", 1, MNT_NOCLUSTERR, 0 }
#define MOPT_NOCLUSTERW { "clusterw", 1, MNT_NOCLUSTERW, 0 }
+#define MOPT_SUIDDIR { "suiddir", 0, MNT_SUIDDIR, 0 }
/* Control flags. */
#define MOPT_FORCE { "force", 0, MNT_FORCE, 0 }
@@ -77,6 +78,7 @@ struct mntopt {
MOPT_NOATIME, \
MOPT_NODEV, \
MOPT_NOEXEC, \
+ MOPT_SUIDDIR, /* must be before MOPT_NOSUID */ \
MOPT_NOSUID, \
MOPT_RDONLY, \
MOPT_UNION, \