aboutsummaryrefslogtreecommitdiff
path: root/sys/security/mac_ifoff
diff options
context:
space:
mode:
authorRobert Watson <rwatson@FreeBSD.org>2002-08-15 18:51:27 +0000
committerRobert Watson <rwatson@FreeBSD.org>2002-08-15 18:51:27 +0000
commitfb95b5d3c3d91d5c06e16abf161c11d4be32fb7a (patch)
tree470986e91feb7d5a517a603465e7a4febc995bb4 /sys/security/mac_ifoff
parentd61198e422e40a336aa2bcefe4e97511b78315b6 (diff)
Rename mac_check_socket_receive() to mac_check_socket_deliver() so that
we can use the names _receive() and _send() for the receive() and send() checks. Rename related constants, policy implementations, etc. Obtained from: TrustedBSD Project Sponsored by: DARPA, NAI Labs
Notes
Notes: svn path=/head/; revision=101934
Diffstat (limited to 'sys/security/mac_ifoff')
-rw-r--r--sys/security/mac_ifoff/mac_ifoff.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/security/mac_ifoff/mac_ifoff.c b/sys/security/mac_ifoff/mac_ifoff.c
index b43bb1a592c1..8aea44a8f339 100644
--- a/sys/security/mac_ifoff/mac_ifoff.c
+++ b/sys/security/mac_ifoff/mac_ifoff.c
@@ -146,7 +146,7 @@ mac_ifoff_check_ifnet_transmit(struct ifnet *ifnet, struct label *ifnetlabel,
}
static int
-mac_ifoff_check_socket_receive(struct socket *so, struct label *socketlabel,
+mac_ifoff_check_socket_deliver(struct socket *so, struct label *socketlabel,
struct mbuf *m, struct label *mbuflabel)
{
@@ -164,8 +164,8 @@ static struct mac_policy_op_entry mac_ifoff_ops[] =
(macop_t)mac_ifoff_check_bpfdesc_receive },
{ MAC_CHECK_IFNET_TRANSMIT,
(macop_t)mac_ifoff_check_ifnet_transmit },
- { MAC_CHECK_SOCKET_RECEIVE,
- (macop_t)mac_ifoff_check_socket_receive },
+ { MAC_CHECK_SOCKET_DELIVER,
+ (macop_t)mac_ifoff_check_socket_deliver },
{ MAC_OP_LAST, NULL }
};