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_test/mac_test.c | |
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_test/mac_test.c')
-rw-r--r-- | sys/security/mac_test/mac_test.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/security/mac_test/mac_test.c b/sys/security/mac_test/mac_test.c index c3050d2..2e0d3ca 100644 --- a/sys/security/mac_test/mac_test.c +++ b/sys/security/mac_test/mac_test.c @@ -862,16 +862,16 @@ mac_test_check_socket_connect(struct ucred *cred, struct socket *socket, } static int -mac_test_check_socket_listen(struct ucred *cred, struct socket *socket, - struct label *socketlabel, struct sockaddr *sockaddr) +mac_test_check_socket_deliver(struct socket *socket, struct label *socketlabel, + struct mbuf *m, struct label *mbuflabel) { return (0); } static int -mac_test_check_socket_receive(struct socket *socket, struct label *socketlabel, - struct mbuf *m, struct label *mbuflabel) +mac_test_check_socket_listen(struct ucred *cred, struct socket *socket, + struct label *socketlabel, struct sockaddr *sockaddr) { return (0); @@ -1248,10 +1248,10 @@ static struct mac_policy_op_entry mac_test_ops[] = (macop_t)mac_test_check_socket_bind }, { MAC_CHECK_SOCKET_CONNECT, (macop_t)mac_test_check_socket_connect }, + { MAC_CHECK_SOCKET_DELIVER, + (macop_t)mac_test_check_socket_deliver }, { MAC_CHECK_SOCKET_LISTEN, (macop_t)mac_test_check_socket_listen }, - { MAC_CHECK_SOCKET_RECEIVE, - (macop_t)mac_test_check_socket_receive }, { MAC_CHECK_SOCKET_RELABEL, (macop_t)mac_test_check_socket_relabel }, { MAC_CHECK_SOCKET_VISIBLE, |