mac_stub.c (122875) | mac_stub.c (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_stub/mac_stub.c 122875 2003-11-18 00:39:07Z rwatson $ | 34 * $FreeBSD: head/sys/security/mac_stub/mac_stub.c 123173 2003-12-06 21:48:03Z rwatson $ |
35 */ 36 37/* 38 * Developed by the TrustedBSD Project. 39 * 40 * Stub module that implements a NOOP for most (if not all) MAC Framework 41 * policy entry points. 42 */ --- 391 unchanged lines hidden (view full) --- 434{ 435 436} 437 438/* 439 * Labeling event operations: processes. 440 */ 441static void | 35 */ 36 37/* 38 * Developed by the TrustedBSD Project. 39 * 40 * Stub module that implements a NOOP for most (if not all) MAC Framework 41 * policy entry points. 42 */ --- 391 unchanged lines hidden (view full) --- 434{ 435 436} 437 438/* 439 * Labeling event operations: processes. 440 */ 441static void |
442stub_create_cred(struct ucred *cred_parent, struct ucred *cred_child) 443{ 444 445} 446 447static void | |
448stub_execve_transition(struct ucred *old, struct ucred *new, 449 struct vnode *vp, struct label *vnodelabel, 450 struct label *interpvnodelabel, struct image_params *imgp, 451 struct label *execlabel) 452{ 453 454} 455 --- 594 unchanged lines hidden (view full) --- 1050 .mpo_destroy_ipq_label = stub_destroy_label, 1051 .mpo_destroy_mbuf_label = stub_destroy_label, 1052 .mpo_destroy_mount_label = stub_destroy_label, 1053 .mpo_destroy_mount_fs_label = stub_destroy_label, 1054 .mpo_destroy_pipe_label = stub_destroy_label, 1055 .mpo_destroy_socket_label = stub_destroy_label, 1056 .mpo_destroy_socket_peer_label = stub_destroy_label, 1057 .mpo_destroy_vnode_label = stub_destroy_label, | 442stub_execve_transition(struct ucred *old, struct ucred *new, 443 struct vnode *vp, struct label *vnodelabel, 444 struct label *interpvnodelabel, struct image_params *imgp, 445 struct label *execlabel) 446{ 447 448} 449 --- 594 unchanged lines hidden (view full) --- 1044 .mpo_destroy_ipq_label = stub_destroy_label, 1045 .mpo_destroy_mbuf_label = stub_destroy_label, 1046 .mpo_destroy_mount_label = stub_destroy_label, 1047 .mpo_destroy_mount_fs_label = stub_destroy_label, 1048 .mpo_destroy_pipe_label = stub_destroy_label, 1049 .mpo_destroy_socket_label = stub_destroy_label, 1050 .mpo_destroy_socket_peer_label = stub_destroy_label, 1051 .mpo_destroy_vnode_label = stub_destroy_label, |
1052 .mpo_copy_cred_label = stub_copy_label, |
|
1058 .mpo_copy_mbuf_label = stub_copy_label, 1059 .mpo_copy_pipe_label = stub_copy_label, 1060 .mpo_copy_socket_label = stub_copy_label, 1061 .mpo_copy_vnode_label = stub_copy_label, 1062 .mpo_externalize_cred_label = stub_externalize_label, 1063 .mpo_externalize_ifnet_label = stub_externalize_label, 1064 .mpo_externalize_pipe_label = stub_externalize_label, 1065 .mpo_externalize_socket_label = stub_externalize_label, --- 38 unchanged lines hidden (view full) --- 1104 .mpo_create_mbuf_multicast_encap = stub_create_mbuf_multicast_encap, 1105 .mpo_create_mbuf_netlayer = stub_create_mbuf_netlayer, 1106 .mpo_fragment_match = stub_fragment_match, 1107 .mpo_reflect_mbuf_icmp = stub_reflect_mbuf_icmp, 1108 .mpo_reflect_mbuf_tcp = stub_reflect_mbuf_tcp, 1109 .mpo_relabel_ifnet = stub_relabel_ifnet, 1110 .mpo_update_ipq = stub_update_ipq, 1111 .mpo_inpcb_sosetlabel = stub_inpcb_sosetlabel, | 1053 .mpo_copy_mbuf_label = stub_copy_label, 1054 .mpo_copy_pipe_label = stub_copy_label, 1055 .mpo_copy_socket_label = stub_copy_label, 1056 .mpo_copy_vnode_label = stub_copy_label, 1057 .mpo_externalize_cred_label = stub_externalize_label, 1058 .mpo_externalize_ifnet_label = stub_externalize_label, 1059 .mpo_externalize_pipe_label = stub_externalize_label, 1060 .mpo_externalize_socket_label = stub_externalize_label, --- 38 unchanged lines hidden (view full) --- 1099 .mpo_create_mbuf_multicast_encap = stub_create_mbuf_multicast_encap, 1100 .mpo_create_mbuf_netlayer = stub_create_mbuf_netlayer, 1101 .mpo_fragment_match = stub_fragment_match, 1102 .mpo_reflect_mbuf_icmp = stub_reflect_mbuf_icmp, 1103 .mpo_reflect_mbuf_tcp = stub_reflect_mbuf_tcp, 1104 .mpo_relabel_ifnet = stub_relabel_ifnet, 1105 .mpo_update_ipq = stub_update_ipq, 1106 .mpo_inpcb_sosetlabel = stub_inpcb_sosetlabel, |
1112 .mpo_create_cred = stub_create_cred, | |
1113 .mpo_execve_transition = stub_execve_transition, 1114 .mpo_execve_will_transition = stub_execve_will_transition, 1115 .mpo_create_proc0 = stub_create_proc0, 1116 .mpo_create_proc1 = stub_create_proc1, 1117 .mpo_relabel_cred = stub_relabel_cred, 1118 .mpo_thread_userret = stub_thread_userret, 1119 .mpo_check_bpfdesc_receive = stub_check_bpfdesc_receive, 1120 .mpo_check_cred_relabel = stub_check_cred_relabel, --- 70 unchanged lines hidden --- | 1107 .mpo_execve_transition = stub_execve_transition, 1108 .mpo_execve_will_transition = stub_execve_will_transition, 1109 .mpo_create_proc0 = stub_create_proc0, 1110 .mpo_create_proc1 = stub_create_proc1, 1111 .mpo_relabel_cred = stub_relabel_cred, 1112 .mpo_thread_userret = stub_thread_userret, 1113 .mpo_check_bpfdesc_receive = stub_check_bpfdesc_receive, 1114 .mpo_check_cred_relabel = stub_check_cred_relabel, --- 70 unchanged lines hidden --- |