Deleted Added
full compact
mac_policy.h (122875) mac_policy.h (123173)
1/*-
2 * Copyright (c) 1999, 2000, 2001, 2002 Robert N. M. Watson
3 * Copyright (c) 2001, 2002, 2003 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, 2003 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 122875 2003-11-18 00:39:07Z rwatson $
34 * $FreeBSD: head/sys/security/mac/mac_policy.h 123173 2003-12-06 21:48:03Z 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/*-

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

106 void (*mpo_destroy_mbuf_label)(struct label *label);
107 void (*mpo_destroy_mount_label)(struct label *label);
108 void (*mpo_destroy_mount_fs_label)(struct label *label);
109 void (*mpo_destroy_socket_label)(struct label *label);
110 void (*mpo_destroy_socket_peer_label)(struct label *label);
111 void (*mpo_destroy_pipe_label)(struct label *label);
112 void (*mpo_destroy_proc_label)(struct label *label);
113 void (*mpo_destroy_vnode_label)(struct label *label);
35 */
36/*
37 * Kernel interface for MAC policy modules.
38 */
39#ifndef _SYS_MAC_POLICY_H
40#define _SYS_MAC_POLICY_H
41
42/*-

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

106 void (*mpo_destroy_mbuf_label)(struct label *label);
107 void (*mpo_destroy_mount_label)(struct label *label);
108 void (*mpo_destroy_mount_fs_label)(struct label *label);
109 void (*mpo_destroy_socket_label)(struct label *label);
110 void (*mpo_destroy_socket_peer_label)(struct label *label);
111 void (*mpo_destroy_pipe_label)(struct label *label);
112 void (*mpo_destroy_proc_label)(struct label *label);
113 void (*mpo_destroy_vnode_label)(struct label *label);
114 void (*mpo_copy_cred_label)(struct label *src,
115 struct label *dest);
114 void (*mpo_copy_mbuf_label)(struct label *src,
115 struct label *dest);
116 void (*mpo_copy_pipe_label)(struct label *src,
117 struct label *dest);
118 void (*mpo_copy_socket_label)(struct label *src,
119 struct label *dest);
120 void (*mpo_copy_vnode_label)(struct label *src,
121 struct label *dest);

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

259 struct label *ipqlabel);
260 void (*mpo_inpcb_sosetlabel)(struct socket *so,
261 struct label *label, struct inpcb *inp,
262 struct label *inplabel);
263
264 /*
265 * Labeling event operations: processes.
266 */
116 void (*mpo_copy_mbuf_label)(struct label *src,
117 struct label *dest);
118 void (*mpo_copy_pipe_label)(struct label *src,
119 struct label *dest);
120 void (*mpo_copy_socket_label)(struct label *src,
121 struct label *dest);
122 void (*mpo_copy_vnode_label)(struct label *src,
123 struct label *dest);

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

261 struct label *ipqlabel);
262 void (*mpo_inpcb_sosetlabel)(struct socket *so,
263 struct label *label, struct inpcb *inp,
264 struct label *inplabel);
265
266 /*
267 * Labeling event operations: processes.
268 */
267 void (*mpo_create_cred)(struct ucred *parent_cred,
268 struct ucred *child_cred);
269 void (*mpo_execve_transition)(struct ucred *old, struct ucred *new,
270 struct vnode *vp, struct label *vnodelabel,
271 struct label *interpvnodelabel,
272 struct image_params *imgp, struct label *execlabel);
273 int (*mpo_execve_will_transition)(struct ucred *old,
274 struct vnode *vp, struct label *vnodelabel,
275 struct label *interpvnodelabel,
276 struct image_params *imgp, struct label *execlabel);

--- 216 unchanged lines hidden ---
269 void (*mpo_execve_transition)(struct ucred *old, struct ucred *new,
270 struct vnode *vp, struct label *vnodelabel,
271 struct label *interpvnodelabel,
272 struct image_params *imgp, struct label *execlabel);
273 int (*mpo_execve_will_transition)(struct ucred *old,
274 struct vnode *vp, struct label *vnodelabel,
275 struct label *interpvnodelabel,
276 struct image_params *imgp, struct label *execlabel);

--- 216 unchanged lines hidden ---