summaryrefslogtreecommitdiffstats
path: root/sys/security/mac_biba/mac_biba.c
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_biba/mac_biba.c
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_biba/mac_biba.c')
-rw-r--r--sys/security/mac_biba/mac_biba.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/security/mac_biba/mac_biba.c b/sys/security/mac_biba/mac_biba.c
index c50ff44..fc2baa9 100644
--- a/sys/security/mac_biba/mac_biba.c
+++ b/sys/security/mac_biba/mac_biba.c
@@ -1268,7 +1268,7 @@ biba_inpcb_create_mbuf(struct inpcb *inp, struct label *inplabel,
}
static void
-biba_create_mbuf_linklayer(struct ifnet *ifp, struct label *ifplabel,
+biba_mbuf_create_linklayer(struct ifnet *ifp, struct label *ifplabel,
struct mbuf *m, struct label *mlabel)
{
struct mac_biba *dest;
@@ -1372,13 +1372,13 @@ biba_inpcb_sosetlabel(struct socket *so, struct label *solabel,
}
static void
-biba_mbuf_create_from_firewall(struct mbuf *m, struct label *label)
+biba_netinet_firewall_send(struct mbuf *m, struct label *mlabel)
{
struct mac_biba *dest;
- dest = SLOT(label);
+ dest = SLOT(mlabel);
- /* XXX: where is the label for the firewall really comming from? */
+ /* XXX: where is the label for the firewall really coming from? */
biba_set_effective(dest, MAC_BIBA_TYPE_EQUAL, 0, NULL);
}
@@ -3320,7 +3320,7 @@ static struct mac_policy_ops mac_biba_ops =
.mpo_sysvshm_create = biba_sysvshm_create,
.mpo_ipq_create = biba_ipq_create,
.mpo_inpcb_create_mbuf = biba_inpcb_create_mbuf,
- .mpo_create_mbuf_linklayer = biba_create_mbuf_linklayer,
+ .mpo_mbuf_create_linklayer = biba_mbuf_create_linklayer,
.mpo_bpfdesc_create_mbuf = biba_bpfdesc_create_mbuf,
.mpo_ifnet_create_mbuf = biba_ifnet_create_mbuf,
.mpo_mbuf_create_multicast_encap = biba_mbuf_create_multicast_encap,
@@ -3412,7 +3412,7 @@ static struct mac_policy_ops mac_biba_ops =
.mpo_vnode_check_stat = biba_vnode_check_stat,
.mpo_vnode_check_unlink = biba_vnode_check_unlink,
.mpo_vnode_check_write = biba_vnode_check_write,
- .mpo_mbuf_create_from_firewall = biba_mbuf_create_from_firewall,
+ .mpo_netinet_firewall_send = biba_netinet_firewall_send,
.mpo_priv_check = biba_priv_check,
};
OpenPOWER on IntegriCloud