summaryrefslogtreecommitdiffstats
path: root/sbin/mount/mntopts.h
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2002-08-02 07:02:51 +0000
committerrwatson <rwatson@FreeBSD.org>2002-08-02 07:02:51 +0000
commitc75c0a4c248f5f063db09eefea72a22b79f9c471 (patch)
tree985d024099c668b3346f0d73fcc1a3545480a65e /sbin/mount/mntopts.h
parent5db6965289c096b468c8505134140b331cfbae4e (diff)
downloadFreeBSD-src-c75c0a4c248f5f063db09eefea72a22b79f9c471.zip
FreeBSD-src-c75c0a4c248f5f063db09eefea72a22b79f9c471.tar.gz
Introduce support for Mandatory Access Control and extensible
kernel access control. Teach mount(8) to understand the MNT_MULTILABEL flag, which is used to determine whether a file system operates with individual per-vnode labels, or treats the entire file system as a single object with a single (mount) label. The behavior here will probably evolve some now that nmount(2) is available and can more flexibly support mount options. Obtained from: TrustedBSD Project Sponsored by: DARPA, NAI Labs
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 8ff13f7..c7cecf5 100644
--- a/sbin/mount/mntopts.h
+++ b/sbin/mount/mntopts.h
@@ -57,6 +57,7 @@ struct mntopt {
#define MOPT_NOCLUSTERW { "clusterw", 1, MNT_NOCLUSTERW, 0 }
#define MOPT_SUIDDIR { "suiddir", 0, MNT_SUIDDIR, 0 }
#define MOPT_SNAPSHOT { "snapshot", 0, MNT_SNAPSHOT, 0 }
+#define MOPT_MULTILABEL { "multilabel", 0, MNT_MULTILABEL, 0 }
/* Control flags. */
#define MOPT_FORCE { "force", 0, MNT_FORCE, 0 }
@@ -86,7 +87,8 @@ struct mntopt {
MOPT_RDONLY, \
MOPT_UNION, \
MOPT_NOCLUSTERR, \
- MOPT_NOCLUSTERW
+ MOPT_NOCLUSTERW, \
+ MOPT_MULTILABEL
void getmntopts(const char *, const struct mntopt *, int *, int *);
void rmslashes(char *, char *);
OpenPOWER on IntegriCloud