Deleted Added
full compact
mac_policy.h (106788) mac_policy.h (107089)
1/*-
2 * Copyright (c) 1999, 2000, 2001, 2002 Robert N. M. Watson
3 * Copyright (c) 2001, 2002 Networks Associates Technology, Inc.
4 * All rights reserved.
5 *
6 * This software was developed by Robert Watson for the TrustedBSD Project.
7 *
8 * This software was developed for the FreeBSD Project in part by Network

--- 17 unchanged lines hidden (view full) ---

26 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 * SUCH DAMAGE.
33 *
1/*-
2 * Copyright (c) 1999, 2000, 2001, 2002 Robert N. M. Watson
3 * Copyright (c) 2001, 2002 Networks Associates Technology, Inc.
4 * All rights reserved.
5 *
6 * This software was developed by Robert Watson for the TrustedBSD Project.
7 *
8 * This software was developed for the FreeBSD Project in part by Network

--- 17 unchanged lines hidden (view full) ---

26 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 * SUCH DAMAGE.
33 *
34 * $FreeBSD: head/sys/security/mac/mac_policy.h 106788 2002-11-12 04:20:36Z rwatson $
34 * $FreeBSD: head/sys/security/mac/mac_policy.h 107089 2002-11-19 22:12:42Z rwatson $
35 */
36/*
37 * Kernel interface for MAC policy modules.
38 */
39#ifndef _SYS_MAC_POLICY_H
40#define _SYS_MAC_POLICY_H
41
42/*-

--- 224 unchanged lines hidden (view full) ---

267 int (*mpo_check_ifnet_transmit)(struct ifnet *ifnet,
268 struct label *ifnetlabel, struct mbuf *m,
269 struct label *mbuflabel);
270 int (*mpo_check_kenv_dump)(struct ucred *cred);
271 int (*mpo_check_kenv_get)(struct ucred *cred, char *name);
272 int (*mpo_check_kenv_set)(struct ucred *cred, char *name,
273 char *value);
274 int (*mpo_check_kenv_unset)(struct ucred *cred, char *name);
35 */
36/*
37 * Kernel interface for MAC policy modules.
38 */
39#ifndef _SYS_MAC_POLICY_H
40#define _SYS_MAC_POLICY_H
41
42/*-

--- 224 unchanged lines hidden (view full) ---

267 int (*mpo_check_ifnet_transmit)(struct ifnet *ifnet,
268 struct label *ifnetlabel, struct mbuf *m,
269 struct label *mbuflabel);
270 int (*mpo_check_kenv_dump)(struct ucred *cred);
271 int (*mpo_check_kenv_get)(struct ucred *cred, char *name);
272 int (*mpo_check_kenv_set)(struct ucred *cred, char *name,
273 char *value);
274 int (*mpo_check_kenv_unset)(struct ucred *cred, char *name);
275 int (*mpo_check_kld_load)(struct ucred *cred, struct vnode *vp,
276 struct label *vlabel);
277 int (*mpo_check_kld_stat)(struct ucred *cred);
278 int (*mpo_check_kld_unload)(struct ucred *cred);
275 int (*mpo_check_mount_stat)(struct ucred *cred, struct mount *mp,
276 struct label *mntlabel);
277 int (*mpo_check_pipe_ioctl)(struct ucred *cred, struct pipe *pipe,
278 struct label *pipelabel, unsigned long cmd, void *data);
279 int (*mpo_check_pipe_poll)(struct ucred *cred, struct pipe *pipe,
280 struct label *pipelabel);
281 int (*mpo_check_pipe_read)(struct ucred *cred, struct pipe *pipe,
282 struct label *pipelabel);

--- 166 unchanged lines hidden ---
279 int (*mpo_check_mount_stat)(struct ucred *cred, struct mount *mp,
280 struct label *mntlabel);
281 int (*mpo_check_pipe_ioctl)(struct ucred *cred, struct pipe *pipe,
282 struct label *pipelabel, unsigned long cmd, void *data);
283 int (*mpo_check_pipe_poll)(struct ucred *cred, struct pipe *pipe,
284 struct label *pipelabel);
285 int (*mpo_check_pipe_read)(struct ucred *cred, struct pipe *pipe,
286 struct label *pipelabel);

--- 166 unchanged lines hidden ---