aboutsummaryrefslogtreecommitdiff
path: root/sys/security/mac_stub
diff options
context:
space:
mode:
authorBjoern A. Zeeb <bz@FreeBSD.org>2008-10-17 15:11:12 +0000
committerBjoern A. Zeeb <bz@FreeBSD.org>2008-10-17 15:11:12 +0000
commit7fb179ba7e6d3d82bddcd292bad1e1b7b4aef95e (patch)
treee36de3f0025fae6733ec800ba092329a7347db0b /sys/security/mac_stub
parent962b77f9433ac74a9eccf416ab7e0e0c859c51da (diff)
Notes
Diffstat (limited to 'sys/security/mac_stub')
-rw-r--r--sys/security/mac_stub/mac_stub.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/security/mac_stub/mac_stub.c b/sys/security/mac_stub/mac_stub.c
index b8fe4dfd2599..d8a9d2ba8005 100644
--- a/sys/security/mac_stub/mac_stub.c
+++ b/sys/security/mac_stub/mac_stub.c
@@ -859,6 +859,14 @@ stub_socket_check_stat(struct ucred *cred, struct socket *so,
}
static int
+stub_inpcb_check_visible(struct ucred *cred, struct inpcb *inp,
+ struct label *inplabel)
+{
+
+ return (0);
+}
+
+static int
stub_socket_check_visible(struct ucred *cred, struct socket *so,
struct label *solabel)
{
@@ -1531,6 +1539,7 @@ static struct mac_policy_ops stub_ops =
.mpo_ifnet_relabel = stub_ifnet_relabel,
.mpo_inpcb_check_deliver = stub_inpcb_check_deliver,
+ .mpo_inpcb_check_visible = stub_inpcb_check_visible,
.mpo_inpcb_create = stub_inpcb_create,
.mpo_inpcb_create_mbuf = stub_inpcb_create_mbuf,
.mpo_inpcb_destroy_label = stub_destroy_label,