summaryrefslogtreecommitdiffstats
path: root/sys/security/mac_stub
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_stub
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_stub')
-rw-r--r--sys/security/mac_stub/mac_stub.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/security/mac_stub/mac_stub.c b/sys/security/mac_stub/mac_stub.c
index 138a099..4e15ffc 100644
--- a/sys/security/mac_stub/mac_stub.c
+++ b/sys/security/mac_stub/mac_stub.c
@@ -350,7 +350,7 @@ stub_inpcb_create(struct socket *so, struct label *solabel,
}
static void
-stub_init_syncache_from_inpcb(struct label *label, struct inpcb *inp)
+stub_syncache_create(struct label *label, struct inpcb *inp)
{
}
@@ -398,7 +398,7 @@ stub_inpcb_create_mbuf(struct inpcb *inp, struct label *inplabel,
}
static void
-stub_create_mbuf_from_syncache(struct label *sc_label, struct mbuf *m,
+stub_syncache_create_mbuf(struct label *sc_label, struct mbuf *m,
struct label *mlabel)
{
@@ -1654,10 +1654,10 @@ static struct mac_policy_ops stub_ops =
.mpo_vnode_check_write = stub_vnode_check_write,
.mpo_priv_check = stub_priv_check,
.mpo_priv_grant = stub_priv_grant,
- .mpo_init_syncache_label = stub_init_label_waitcheck,
- .mpo_destroy_syncache_label = stub_destroy_label,
- .mpo_init_syncache_from_inpcb = stub_init_syncache_from_inpcb,
- .mpo_create_mbuf_from_syncache = stub_create_mbuf_from_syncache,
+ .mpo_syncache_init_label = stub_init_label_waitcheck,
+ .mpo_syncache_destroy_label = stub_destroy_label,
+ .mpo_syncache_create = stub_syncache_create,
+ .mpo_syncache_create_mbuf= stub_syncache_create_mbuf,
};
MAC_POLICY_SET(&stub_ops, mac_stub, "TrustedBSD MAC/Stub",
OpenPOWER on IntegriCloud