summaryrefslogtreecommitdiffstats
path: root/sys/security/mac/mac_policy.h
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2007-02-06 10:59:23 +0000
committerrwatson <rwatson@FreeBSD.org>2007-02-06 10:59:23 +0000
commitd945a8c499f7a946267bab0c92a55751d4503713 (patch)
tree7d45598262a6e6d6f025d75a3fb731c64945fe8b /sys/security/mac/mac_policy.h
parent5ebe8e29b1943eed8144200f709bc884004706f4 (diff)
downloadFreeBSD-src-d945a8c499f7a946267bab0c92a55751d4503713.zip
FreeBSD-src-d945a8c499f7a946267bab0c92a55751d4503713.tar.gz
Continue 7-CURRENT MAC Framework rearrangement and cleanup:
Don't perform a nested include of _label.h in mac.h, as mac.h now describes only the user API to MAC, and _label.h defines the in-kernel representation of MAC labels. Remove mac.h includes from policies and MAC framework components that do not use userspace MAC API definitions. Add _KERNEL inclusion checks to mac_internal.h and mac_policy.h, as these are kernel-only include files Obtained from: TrustedBSD Project
Diffstat (limited to 'sys/security/mac/mac_policy.h')
-rw-r--r--sys/security/mac/mac_policy.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/security/mac/mac_policy.h b/sys/security/mac/mac_policy.h
index d5dd9eb..750218f 100644
--- a/sys/security/mac/mac_policy.h
+++ b/sys/security/mac/mac_policy.h
@@ -43,6 +43,12 @@
#ifndef _SYS_SECURITY_MAC_MAC_POLICY_H_
#define _SYS_SECURITY_MAC_MAC_POLICY_H_
+#ifndef _KERNEL
+#error "no user-serviceable parts inside"
+#endif
+
+#include <sys/_label.h>
+
/*-
* Pluggable access control policy definition structure.
*
OpenPOWER on IntegriCloud