Deleted Added
full compact
mac_stub.c (172970) mac_stub.c (173018)
1/*-
2 * Copyright (c) 1999-2002, 2007 Robert N. M. Watson
3 * Copyright (c) 2001-2005 McAfee, Inc.
4 * Copyright (c) 2005-2006 SPARTA, Inc.
5 * All rights reserved.
6 *
7 * This software was developed by Robert Watson for the TrustedBSD Project.
8 *

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

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

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

30 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
36 * SUCH DAMAGE.
37 *
38 * $FreeBSD: head/sys/security/mac_stub/mac_stub.c 172970 2007-10-25 14:37:37Z rwatson $
38 * $FreeBSD: head/sys/security/mac_stub/mac_stub.c 173018 2007-10-26 13:18:38Z rwatson $
39 */
40
41/*
42 * Developed by the TrustedBSD Project.
43 *
44 * Stub module that implements a NOOP for most (if not all) MAC Framework
45 * policy entry points.
46 */

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

400static void
401stub_syncache_create_mbuf(struct label *sc_label, struct mbuf *m,
402 struct label *mlabel)
403{
404
405}
406
407static void
39 */
40
41/*
42 * Developed by the TrustedBSD Project.
43 *
44 * Stub module that implements a NOOP for most (if not all) MAC Framework
45 * policy entry points.
46 */

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

400static void
401stub_syncache_create_mbuf(struct label *sc_label, struct mbuf *m,
402 struct label *mlabel)
403{
404
405}
406
407static void
408stub_create_mbuf_linklayer(struct ifnet *ifp, struct label *iflpabel,
408stub_mbuf_create_linklayer(struct ifnet *ifp, struct label *iflpabel,
409 struct mbuf *m, struct label *mlabel)
410{
411
412}
413
414static void
415stub_bpfdesc_create_mbuf(struct bpf_d *d, struct label *dlabel,
416 struct mbuf *m, struct label *mlabel)

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

436static void
437stub_mbuf_create_netlayer(struct mbuf *m, struct label *mlabel,
438 struct mbuf *mnew, struct label *mnewlabel)
439{
440
441}
442
443static void
409 struct mbuf *m, struct label *mlabel)
410{
411
412}
413
414static void
415stub_bpfdesc_create_mbuf(struct bpf_d *d, struct label *dlabel,
416 struct mbuf *m, struct label *mlabel)

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

436static void
437stub_mbuf_create_netlayer(struct mbuf *m, struct label *mlabel,
438 struct mbuf *mnew, struct label *mnewlabel)
439{
440
441}
442
443static void
444stub_mbuf_create_from_firewall(struct mbuf *m, struct label *mlabel)
444stub_netinet_firewall_send(struct mbuf *m, struct label *mlabel)
445{
446
447}
448
449static int
450stub_ipq_match(struct mbuf *m, struct label *mlabel, struct ipq *ipq,
451 struct label *ipqlabel)
452{

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

1516 .mpo_socketpeer_set_from_socket = stub_socketpeer_set_from_socket,
1517 .mpo_bpfdesc_create = stub_bpfdesc_create,
1518 .mpo_ifnet_create = stub_ifnet_create,
1519 .mpo_inpcb_create = stub_inpcb_create,
1520 .mpo_ipq_create = stub_ipq_create,
1521 .mpo_ipq_reassemble = stub_ipq_reassemble,
1522 .mpo_netinet_fragment = stub_netinet_fragment,
1523 .mpo_inpcb_create_mbuf = stub_inpcb_create_mbuf,
445{
446
447}
448
449static int
450stub_ipq_match(struct mbuf *m, struct label *mlabel, struct ipq *ipq,
451 struct label *ipqlabel)
452{

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

1516 .mpo_socketpeer_set_from_socket = stub_socketpeer_set_from_socket,
1517 .mpo_bpfdesc_create = stub_bpfdesc_create,
1518 .mpo_ifnet_create = stub_ifnet_create,
1519 .mpo_inpcb_create = stub_inpcb_create,
1520 .mpo_ipq_create = stub_ipq_create,
1521 .mpo_ipq_reassemble = stub_ipq_reassemble,
1522 .mpo_netinet_fragment = stub_netinet_fragment,
1523 .mpo_inpcb_create_mbuf = stub_inpcb_create_mbuf,
1524 .mpo_create_mbuf_linklayer = stub_create_mbuf_linklayer,
1524 .mpo_mbuf_create_linklayer = stub_mbuf_create_linklayer,
1525 .mpo_bpfdesc_create_mbuf = stub_bpfdesc_create_mbuf,
1526 .mpo_ifnet_create_mbuf = stub_ifnet_create_mbuf,
1527 .mpo_mbuf_create_multicast_encap = stub_mbuf_create_multicast_encap,
1528 .mpo_mbuf_create_netlayer = stub_mbuf_create_netlayer,
1525 .mpo_bpfdesc_create_mbuf = stub_bpfdesc_create_mbuf,
1526 .mpo_ifnet_create_mbuf = stub_ifnet_create_mbuf,
1527 .mpo_mbuf_create_multicast_encap = stub_mbuf_create_multicast_encap,
1528 .mpo_mbuf_create_netlayer = stub_mbuf_create_netlayer,
1529 .mpo_mbuf_create_from_firewall = stub_mbuf_create_from_firewall,
1529 .mpo_netinet_firewall_send = stub_netinet_firewall_send,
1530 .mpo_ipq_match = stub_ipq_match,
1531 .mpo_netinet_icmp_reply = stub_netinet_icmp_reply,
1532 .mpo_netinet_tcp_reply = stub_netinet_tcp_reply,
1533 .mpo_ifnet_relabel = stub_ifnet_relabel,
1534 .mpo_ipq_update = stub_ipq_update,
1535 .mpo_inpcb_sosetlabel = stub_inpcb_sosetlabel,
1536 .mpo_vnode_execve_transition = stub_vnode_execve_transition,
1537 .mpo_vnode_execve_will_transition = stub_vnode_execve_will_transition,

--- 127 unchanged lines hidden ---
1530 .mpo_ipq_match = stub_ipq_match,
1531 .mpo_netinet_icmp_reply = stub_netinet_icmp_reply,
1532 .mpo_netinet_tcp_reply = stub_netinet_tcp_reply,
1533 .mpo_ifnet_relabel = stub_ifnet_relabel,
1534 .mpo_ipq_update = stub_ipq_update,
1535 .mpo_inpcb_sosetlabel = stub_inpcb_sosetlabel,
1536 .mpo_vnode_execve_transition = stub_vnode_execve_transition,
1537 .mpo_vnode_execve_will_transition = stub_vnode_execve_will_transition,

--- 127 unchanged lines hidden ---