diff options
author | rwatson <rwatson@FreeBSD.org> | 2002-08-15 18:51:27 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2002-08-15 18:51:27 +0000 |
commit | aa8060c29eeb4a85d171a23017f4e933f79b0cfe (patch) | |
tree | 470986e91feb7d5a517a603465e7a4febc995bb4 /sys/security/mac_ifoff | |
parent | 9725be3a61bad07fdfb0fb8789d43a39078736fd (diff) | |
download | FreeBSD-src-aa8060c29eeb4a85d171a23017f4e933f79b0cfe.zip FreeBSD-src-aa8060c29eeb4a85d171a23017f4e933f79b0cfe.tar.gz |
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
Diffstat (limited to 'sys/security/mac_ifoff')
-rw-r--r-- | sys/security/mac_ifoff/mac_ifoff.c | 6 |
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 b43bb1a..8aea44a 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 } }; |