summaryrefslogtreecommitdiffstats
path: root/sys/security/mac_stub
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2008-06-23 21:37:53 +0000
committerjhb <jhb@FreeBSD.org>2008-06-23 21:37:53 +0000
commit437891381c13fcfea1097ae4d151f60dbcd8f601 (patch)
tree99442461adc39a20433f25399980988944e1cf03 /sys/security/mac_stub
parent0203c01701d045d8cccc12f303fdd5dc4c2a6c1b (diff)
downloadFreeBSD-src-437891381c13fcfea1097ae4d151f60dbcd8f601.zip
FreeBSD-src-437891381c13fcfea1097ae4d151f60dbcd8f601.tar.gz
Remove the posixsem_check_destroy() MAC check. It is semantically identical
to doing a MAC check for close(), but no other types of close() (including close(2) and ksem_close(2)) have MAC checks. Discussed with: rwatson
Diffstat (limited to 'sys/security/mac_stub')
-rw-r--r--sys/security/mac_stub/mac_stub.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/sys/security/mac_stub/mac_stub.c b/sys/security/mac_stub/mac_stub.c
index 6c8f2f5..34f5cad 100644
--- a/sys/security/mac_stub/mac_stub.c
+++ b/sys/security/mac_stub/mac_stub.c
@@ -523,14 +523,6 @@ stub_pipe_relabel(struct ucred *cred, struct pipepair *pp,
}
static int
-stub_posixsem_check_destroy(struct ucred *cred, struct ksem *ks,
- struct label *kslabel)
-{
-
- return (0);
-}
-
-static int
stub_posixsem_check_getvalue(struct ucred *cred, struct ksem *ks,
struct label *kslabel)
{
@@ -1587,7 +1579,6 @@ static struct mac_policy_ops stub_ops =
.mpo_pipe_internalize_label = stub_internalize_label,
.mpo_pipe_relabel = stub_pipe_relabel,
- .mpo_posixsem_check_destroy = stub_posixsem_check_destroy,
.mpo_posixsem_check_getvalue = stub_posixsem_check_getvalue,
.mpo_posixsem_check_open = stub_posixsem_check_open,
.mpo_posixsem_check_post = stub_posixsem_check_post,
OpenPOWER on IntegriCloud