Add missing include guards to mac_internal.h, update include guards in

mac_policy.h following move to new location in src/sys/security/mac.

Obtained from:	TrustedBSD Project
This commit is contained in:
Robert Watson 2006-12-28 23:23:35 +00:00
parent 05f240c59c
commit d02188c146
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=165607
2 changed files with 8 additions and 3 deletions

View File

@ -40,6 +40,9 @@
* $FreeBSD$
*/
#ifndef _SYS_SECURITY_MAC_MAC_INTERNAL_H_
#define _SYS_SECURITY_MAC_MAC_INTERNAL_H_
/*
* MAC Framework sysctl namespace.
*/
@ -307,3 +310,5 @@ int vn_setlabel(struct vnode *vp, struct label *intlabel,
mac_policy_list_unbusy(); \
} \
} while (0)
#endif /* !_SYS_SECURITY_MAC_MAC_INTERNAL_H_ */

View File

@ -40,8 +40,8 @@
/*
* Kernel interface for MAC policy modules.
*/
#ifndef _SYS_MAC_POLICY_H_
#define _SYS_MAC_POLICY_H_
#ifndef _SYS_SECURITY_MAC_MAC_POLICY_H_
#define _SYS_SECURITY_MAC_MAC_POLICY_H_
/*-
* Pluggable access control policy definition structure.
@ -971,4 +971,4 @@ int mac_policy_modevent(module_t mod, int type, void *data);
*/
#define LABEL_TO_SLOT(l, s) (l)->l_perpolicy[s]
#endif /* !_SYS_MAC_POLICY_H_ */
#endif /* !_SYS_SECURITY_MAC_MAC_POLICY_H_ */