summaryrefslogtreecommitdiffstats
path: root/sys/security/mac/mac_inet.c
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2007-10-25 14:37:37 +0000
committerrwatson <rwatson@FreeBSD.org>2007-10-25 14:37:37 +0000
commitad62572aa21437e0754d7906c261abed08a373dd (patch)
tree59f65329ee9cf57655294c02519be33ea5a86714 /sys/security/mac/mac_inet.c
parent0d46dea319ee2434bc6899d1ba8cc600ca16e484 (diff)
downloadFreeBSD-src-ad62572aa21437e0754d7906c261abed08a373dd.zip
FreeBSD-src-ad62572aa21437e0754d7906c261abed08a373dd.tar.gz
Normalize TCP syncache-related MAC Framework entry points to match most
other entry points in the form mac_<object>_method(). Discussed with: csjp Obtained from: TrustedBSD Project
Diffstat (limited to 'sys/security/mac/mac_inet.c')
-rw-r--r--sys/security/mac/mac_inet.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/sys/security/mac/mac_inet.c b/sys/security/mac/mac_inet.c
index 001be116..c5f6403 100644
--- a/sys/security/mac/mac_inet.c
+++ b/sys/security/mac/mac_inet.c
@@ -295,16 +295,16 @@ mac_mbuf_create_from_firewall(struct mbuf *m)
* the syncache code might create.
*/
void
-mac_destroy_syncache(struct label **label)
+mac_syncache_destroy(struct label **label)
{
- MAC_PERFORM(destroy_syncache_label, *label);
+ MAC_PERFORM(syncache_destroy_label, *label);
mac_labelzone_free(*label);
*label = NULL;
}
int
-mac_init_syncache(struct label **label)
+mac_syncache_init(struct label **label)
{
int error;
@@ -317,24 +317,24 @@ mac_init_syncache(struct label **label)
* MAC_CHECK instead of the typical MAC_PERFORM so we can propagate
* allocation failures back to the syncache code.
*/
- MAC_CHECK(init_syncache_label, *label, M_NOWAIT);
+ MAC_CHECK(syncache_init_label, *label, M_NOWAIT);
return (error);
}
void
-mac_init_syncache_from_inpcb(struct label *label, struct inpcb *inp)
+mac_syncache_create(struct label *label, struct inpcb *inp)
{
INP_LOCK_ASSERT(inp);
- MAC_PERFORM(init_syncache_from_inpcb, label, inp);
+ MAC_PERFORM(syncache_create, label, inp);
}
void
-mac_create_mbuf_from_syncache(struct label *sc_label, struct mbuf *m)
+mac_syncache_create_mbuf(struct label *sc_label, struct mbuf *m)
{
struct label *mlabel;
M_ASSERTPKTHDR(m);
mlabel = mac_mbuf_to_label(m);
- MAC_PERFORM(create_mbuf_from_syncache, sc_label, m, mlabel);
+ MAC_PERFORM(syncache_create_mbuf, sc_label, m, mlabel);
}
OpenPOWER on IntegriCloud