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_none/mac_none.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_none/mac_none.c')
-rw-r--r-- | sys/security/mac_none/mac_none.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/security/mac_none/mac_none.c b/sys/security/mac_none/mac_none.c index 8174c2a..b1f154e 100644 --- a/sys/security/mac_none/mac_none.c +++ b/sys/security/mac_none/mac_none.c @@ -654,16 +654,16 @@ mac_none_check_socket_connect(struct ucred *cred, struct socket *socket, } static int -mac_none_check_socket_listen(struct ucred *cred, struct vnode *vp, - struct label *socketlabel) +mac_none_check_socket_deliver(struct socket *so, struct label *socketlabel, + struct mbuf *m, struct label *mbuflabel) { return (0); } static int -mac_none_check_socket_receive(struct socket *so, struct label *socketlabel, - struct mbuf *m, struct label *mbuflabel) +mac_none_check_socket_listen(struct ucred *cred, struct vnode *vp, + struct label *socketlabel) { return (0); @@ -1042,10 +1042,10 @@ static struct mac_policy_op_entry mac_none_ops[] = (macop_t)mac_none_check_socket_bind }, { MAC_CHECK_SOCKET_CONNECT, (macop_t)mac_none_check_socket_connect }, + { MAC_CHECK_SOCKET_DELIVER, + (macop_t)mac_none_check_socket_deliver }, { MAC_CHECK_SOCKET_LISTEN, (macop_t)mac_none_check_socket_listen }, - { MAC_CHECK_SOCKET_RECEIVE, - (macop_t)mac_none_check_socket_receive }, { MAC_CHECK_SOCKET_RELABEL, (macop_t)mac_none_check_socket_relabel }, { MAC_CHECK_SOCKET_VISIBLE, |