summaryrefslogtreecommitdiffstats
path: root/sys/security/mac_stub
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2007-10-26 13:18:38 +0000
committerrwatson <rwatson@FreeBSD.org>2007-10-26 13:18:38 +0000
commita3b8fc4866545652607bccb0d3d248e512463e35 (patch)
tree5126fbd4b18174fda8e90bc084911557af9f87ae /sys/security/mac_stub
parent6edabeb2b453e55413bf787226f2563ce3c4a5da (diff)
downloadFreeBSD-src-a3b8fc4866545652607bccb0d3d248e512463e35.zip
FreeBSD-src-a3b8fc4866545652607bccb0d3d248e512463e35.tar.gz
Rename 'mac_mbuf_create_from_firewall' to 'mac_netinet_firewall_send' as
we move towards netinet as a pseudo-object for the MAC Framework. Rename 'mac_create_mbuf_linklayer' to 'mac_mbuf_create_linklayer' to reflect general object-first ordering preference. Sponsored by: SPARTA (original patches against Mac OS X) Obtained from: TrustedBSD Project, Apple Computer
Diffstat (limited to 'sys/security/mac_stub')
-rw-r--r--sys/security/mac_stub/mac_stub.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/security/mac_stub/mac_stub.c b/sys/security/mac_stub/mac_stub.c
index 4e15ffc..6c3ac33 100644
--- a/sys/security/mac_stub/mac_stub.c
+++ b/sys/security/mac_stub/mac_stub.c
@@ -405,7 +405,7 @@ stub_syncache_create_mbuf(struct label *sc_label, struct mbuf *m,
}
static void
-stub_create_mbuf_linklayer(struct ifnet *ifp, struct label *iflpabel,
+stub_mbuf_create_linklayer(struct ifnet *ifp, struct label *iflpabel,
struct mbuf *m, struct label *mlabel)
{
@@ -441,7 +441,7 @@ stub_mbuf_create_netlayer(struct mbuf *m, struct label *mlabel,
}
static void
-stub_mbuf_create_from_firewall(struct mbuf *m, struct label *mlabel)
+stub_netinet_firewall_send(struct mbuf *m, struct label *mlabel)
{
}
@@ -1521,12 +1521,12 @@ static struct mac_policy_ops stub_ops =
.mpo_ipq_reassemble = stub_ipq_reassemble,
.mpo_netinet_fragment = stub_netinet_fragment,
.mpo_inpcb_create_mbuf = stub_inpcb_create_mbuf,
- .mpo_create_mbuf_linklayer = stub_create_mbuf_linklayer,
+ .mpo_mbuf_create_linklayer = stub_mbuf_create_linklayer,
.mpo_bpfdesc_create_mbuf = stub_bpfdesc_create_mbuf,
.mpo_ifnet_create_mbuf = stub_ifnet_create_mbuf,
.mpo_mbuf_create_multicast_encap = stub_mbuf_create_multicast_encap,
.mpo_mbuf_create_netlayer = stub_mbuf_create_netlayer,
- .mpo_mbuf_create_from_firewall = stub_mbuf_create_from_firewall,
+ .mpo_netinet_firewall_send = stub_netinet_firewall_send,
.mpo_ipq_match = stub_ipq_match,
.mpo_netinet_icmp_reply = stub_netinet_icmp_reply,
.mpo_netinet_tcp_reply = stub_netinet_tcp_reply,
OpenPOWER on IntegriCloud