mac_policy.h (145855) | mac_policy.h (147091) |
---|---|
1/*- 2 * Copyright (c) 1999-2002 Robert N. M. Watson 3 * Copyright (c) 2001-2005 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-2002 Robert N. M. Watson 3 * Copyright (c) 2001-2005 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 145855 2005-05-04 10:39:15Z rwatson $ | 34 * $FreeBSD: head/sys/security/mac/mac_policy.h 147091 2005-06-07 05:03:28Z 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/*- --- 58 unchanged lines hidden (view full) --- 101 */ 102 void (*mpo_init_bpfdesc_label)(struct label *label); 103 void (*mpo_init_cred_label)(struct label *label); 104 void (*mpo_init_devfsdirent_label)(struct label *label); 105 void (*mpo_init_ifnet_label)(struct label *label); 106 int (*mpo_init_inpcb_label)(struct label *label, int flag); 107 void (*mpo_init_sysv_msgmsg_label)(struct label *label); 108 void (*mpo_init_sysv_msgqueue_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/*- --- 58 unchanged lines hidden (view full) --- 101 */ 102 void (*mpo_init_bpfdesc_label)(struct label *label); 103 void (*mpo_init_cred_label)(struct label *label); 104 void (*mpo_init_devfsdirent_label)(struct label *label); 105 void (*mpo_init_ifnet_label)(struct label *label); 106 int (*mpo_init_inpcb_label)(struct label *label, int flag); 107 void (*mpo_init_sysv_msgmsg_label)(struct label *label); 108 void (*mpo_init_sysv_msgqueue_label)(struct label *label); |
109 void (*mpo_init_sysv_sema_label)(struct label *label); | 109 void (*mpo_init_sysv_sem_label)(struct label *label); |
110 void (*mpo_init_sysv_shm_label)(struct label *label); 111 int (*mpo_init_ipq_label)(struct label *label, int flag); 112 int (*mpo_init_mbuf_label)(struct label *label, int flag); 113 void (*mpo_init_mount_label)(struct label *label); 114 void (*mpo_init_mount_fs_label)(struct label *label); 115 int (*mpo_init_socket_label)(struct label *label, int flag); 116 int (*mpo_init_socket_peer_label)(struct label *label, int flag); 117 void (*mpo_init_pipe_label)(struct label *label); 118 void (*mpo_init_posix_sem_label)(struct label *label); 119 void (*mpo_init_proc_label)(struct label *label); 120 void (*mpo_init_vnode_label)(struct label *label); 121 void (*mpo_destroy_bpfdesc_label)(struct label *label); 122 void (*mpo_destroy_cred_label)(struct label *label); 123 void (*mpo_destroy_devfsdirent_label)(struct label *label); 124 void (*mpo_destroy_ifnet_label)(struct label *label); 125 void (*mpo_destroy_inpcb_label)(struct label *label); 126 void (*mpo_destroy_sysv_msgmsg_label)(struct label *label); 127 void (*mpo_destroy_sysv_msgqueue_label)(struct label *label); | 110 void (*mpo_init_sysv_shm_label)(struct label *label); 111 int (*mpo_init_ipq_label)(struct label *label, int flag); 112 int (*mpo_init_mbuf_label)(struct label *label, int flag); 113 void (*mpo_init_mount_label)(struct label *label); 114 void (*mpo_init_mount_fs_label)(struct label *label); 115 int (*mpo_init_socket_label)(struct label *label, int flag); 116 int (*mpo_init_socket_peer_label)(struct label *label, int flag); 117 void (*mpo_init_pipe_label)(struct label *label); 118 void (*mpo_init_posix_sem_label)(struct label *label); 119 void (*mpo_init_proc_label)(struct label *label); 120 void (*mpo_init_vnode_label)(struct label *label); 121 void (*mpo_destroy_bpfdesc_label)(struct label *label); 122 void (*mpo_destroy_cred_label)(struct label *label); 123 void (*mpo_destroy_devfsdirent_label)(struct label *label); 124 void (*mpo_destroy_ifnet_label)(struct label *label); 125 void (*mpo_destroy_inpcb_label)(struct label *label); 126 void (*mpo_destroy_sysv_msgmsg_label)(struct label *label); 127 void (*mpo_destroy_sysv_msgqueue_label)(struct label *label); |
128 void (*mpo_destroy_sysv_sema_label)(struct label *label); | 128 void (*mpo_destroy_sysv_sem_label)(struct label *label); |
129 void (*mpo_destroy_sysv_shm_label)(struct label *label); 130 void (*mpo_destroy_ipq_label)(struct label *label); 131 void (*mpo_destroy_mbuf_label)(struct label *label); 132 void (*mpo_destroy_mount_label)(struct label *label); 133 void (*mpo_destroy_mount_fs_label)(struct label *label); 134 void (*mpo_destroy_socket_label)(struct label *label); 135 void (*mpo_destroy_socket_peer_label)(struct label *label); 136 void (*mpo_destroy_pipe_label)(struct label *label); 137 void (*mpo_destroy_posix_sem_label)(struct label *label); 138 void (*mpo_destroy_proc_label)(struct label *label); 139 void (*mpo_destroy_vnode_label)(struct label *label); 140 void (*mpo_cleanup_sysv_msgmsg)(struct label *msglabel); 141 void (*mpo_cleanup_sysv_msgqueue)(struct label *msqlabel); | 129 void (*mpo_destroy_sysv_shm_label)(struct label *label); 130 void (*mpo_destroy_ipq_label)(struct label *label); 131 void (*mpo_destroy_mbuf_label)(struct label *label); 132 void (*mpo_destroy_mount_label)(struct label *label); 133 void (*mpo_destroy_mount_fs_label)(struct label *label); 134 void (*mpo_destroy_socket_label)(struct label *label); 135 void (*mpo_destroy_socket_peer_label)(struct label *label); 136 void (*mpo_destroy_pipe_label)(struct label *label); 137 void (*mpo_destroy_posix_sem_label)(struct label *label); 138 void (*mpo_destroy_proc_label)(struct label *label); 139 void (*mpo_destroy_vnode_label)(struct label *label); 140 void (*mpo_cleanup_sysv_msgmsg)(struct label *msglabel); 141 void (*mpo_cleanup_sysv_msgqueue)(struct label *msqlabel); |
142 void (*mpo_cleanup_sysv_sema)(struct label *semalabel); | 142 void (*mpo_cleanup_sysv_sem)(struct label *semalabel); |
143 void (*mpo_cleanup_sysv_shm)(struct label *shmlabel); 144 void (*mpo_copy_cred_label)(struct label *src, 145 struct label *dest); 146 void (*mpo_copy_ifnet_label)(struct label *src, 147 struct label *dest); 148 void (*mpo_copy_mbuf_label)(struct label *src, 149 struct label *dest); 150 void (*mpo_copy_pipe_label)(struct label *src, --- 94 unchanged lines hidden (view full) --- 245 /* 246 * Labeling event operations: System V IPC primitives. 247 */ 248 void (*mpo_create_sysv_msgmsg)(struct ucred *cred, 249 struct msqid_kernel *msqkptr, struct label *msqlabel, 250 struct msg *msgptr, struct label *msglabel); 251 void (*mpo_create_sysv_msgqueue)(struct ucred *cred, 252 struct msqid_kernel *msqkptr, struct label *msqlabel); | 143 void (*mpo_cleanup_sysv_shm)(struct label *shmlabel); 144 void (*mpo_copy_cred_label)(struct label *src, 145 struct label *dest); 146 void (*mpo_copy_ifnet_label)(struct label *src, 147 struct label *dest); 148 void (*mpo_copy_mbuf_label)(struct label *src, 149 struct label *dest); 150 void (*mpo_copy_pipe_label)(struct label *src, --- 94 unchanged lines hidden (view full) --- 245 /* 246 * Labeling event operations: System V IPC primitives. 247 */ 248 void (*mpo_create_sysv_msgmsg)(struct ucred *cred, 249 struct msqid_kernel *msqkptr, struct label *msqlabel, 250 struct msg *msgptr, struct label *msglabel); 251 void (*mpo_create_sysv_msgqueue)(struct ucred *cred, 252 struct msqid_kernel *msqkptr, struct label *msqlabel); |
253 void (*mpo_create_sysv_sema)(struct ucred *cred, | 253 void (*mpo_create_sysv_sem)(struct ucred *cred, |
254 struct semid_kernel *semakptr, struct label *semalabel); 255 void (*mpo_create_sysv_shm)(struct ucred *cred, 256 struct shmid_kernel *shmsegptr, struct label *shmlabel); 257 258 /* 259 * Labeling event operations: POSIX (global/inter-process) semaphores. 260 */ 261 void (*mpo_create_posix_sem)(struct ucred *cred, --- 364 unchanged lines hidden --- | 254 struct semid_kernel *semakptr, struct label *semalabel); 255 void (*mpo_create_sysv_shm)(struct ucred *cred, 256 struct shmid_kernel *shmsegptr, struct label *shmlabel); 257 258 /* 259 * Labeling event operations: POSIX (global/inter-process) semaphores. 260 */ 261 void (*mpo_create_posix_sem)(struct ucred *cred, --- 364 unchanged lines hidden --- |