From 16fd30bd2a9339f1181d85ca06fedef4ceae0667 Mon Sep 17 00:00:00 2001 From: Robert Watson Date: Sun, 22 Jun 2003 16:36:00 +0000 Subject: [PATCH] Forward declare a boatload of structures referenced in the MAC policy definition structure; this permits policies to reduce their number of gratuitous includes for required for entry points they don't implement. This also facilitates building the MAC Framework on Darwin. Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories --- sys/security/mac/mac_policy.h | 12 ++++++++++++ sys/sys/mac_policy.h | 12 ++++++++++++ 2 files changed, 24 insertions(+) diff --git a/sys/security/mac/mac_policy.h b/sys/security/mac/mac_policy.h index 43884a077ee..878b961ab28 100644 --- a/sys/security/mac/mac_policy.h +++ b/sys/security/mac/mac_policy.h @@ -51,7 +51,19 @@ * Operations are sorted first by general class of operation, then * alphabetically. */ +struct acl; +struct componentname; +struct devfs_dirent; +struct ipq; +struct label; struct mac_policy_conf; +struct mbuf; +struct mount; +struct pipe; +struct socket; +struct ucred; +struct uio; +struct vnode; struct mac_policy_ops { /* * Policy module operations. diff --git a/sys/sys/mac_policy.h b/sys/sys/mac_policy.h index 43884a077ee..878b961ab28 100644 --- a/sys/sys/mac_policy.h +++ b/sys/sys/mac_policy.h @@ -51,7 +51,19 @@ * Operations are sorted first by general class of operation, then * alphabetically. */ +struct acl; +struct componentname; +struct devfs_dirent; +struct ipq; +struct label; struct mac_policy_conf; +struct mbuf; +struct mount; +struct pipe; +struct socket; +struct ucred; +struct uio; +struct vnode; struct mac_policy_ops { /* * Policy module operations.