aboutsummaryrefslogtreecommitdiff
path: root/sys/security/mac
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2008-06-23 21:37:53 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2008-06-23 21:37:53 +0000
commitc4f3a35a545ad3f76e9a9bac783ee6fad70183bf (patch)
tree99442461adc39a20433f25399980988944e1cf03 /sys/security/mac
parent2794059010e3d262b39a76869d281fcf48e4ec35 (diff)
Notes
Diffstat (limited to 'sys/security/mac')
-rw-r--r--sys/security/mac/mac_framework.h1
-rw-r--r--sys/security/mac/mac_policy.h3
-rw-r--r--sys/security/mac/mac_posix_sem.c10
3 files changed, 0 insertions, 14 deletions
diff --git a/sys/security/mac/mac_framework.h b/sys/security/mac/mac_framework.h
index 9b02e4f8f4b1a..c68d2d1ff8e06 100644
--- a/sys/security/mac/mac_framework.h
+++ b/sys/security/mac/mac_framework.h
@@ -189,7 +189,6 @@ void mac_pipe_init(struct pipepair *);
int mac_pipe_label_set(struct ucred *cred, struct pipepair *pp,
struct label *label);
-int mac_posixsem_check_destroy(struct ucred *cred, struct ksem *ks);
int mac_posixsem_check_getvalue(struct ucred *cred,struct ksem *ks);
int mac_posixsem_check_open(struct ucred *cred, struct ksem *ks);
int mac_posixsem_check_post(struct ucred *cred, struct ksem *ks);
diff --git a/sys/security/mac/mac_policy.h b/sys/security/mac/mac_policy.h
index 8f27ebbc637a5..f0fa7558674b2 100644
--- a/sys/security/mac/mac_policy.h
+++ b/sys/security/mac/mac_policy.h
@@ -288,8 +288,6 @@ typedef int (*mpo_pipe_internalize_label_t)(struct label *label,
typedef void (*mpo_pipe_relabel_t)(struct ucred *cred, struct pipepair *pp,
struct label *oldlabel, struct label *newlabel);
-typedef int (*mpo_posixsem_check_destroy_t)(struct ucred *cred,
- struct ksem *ks, struct label *kslabel);
typedef int (*mpo_posixsem_check_getvalue_t)(struct ucred *cred,
struct ksem *ks, struct label *kslabel);
typedef int (*mpo_posixsem_check_open_t)(struct ucred *cred,
@@ -741,7 +739,6 @@ struct mac_policy_ops {
mpo_pipe_internalize_label_t mpo_pipe_internalize_label;
mpo_pipe_relabel_t mpo_pipe_relabel;
- mpo_posixsem_check_destroy_t mpo_posixsem_check_destroy;
mpo_posixsem_check_getvalue_t mpo_posixsem_check_getvalue;
mpo_posixsem_check_open_t mpo_posixsem_check_open;
mpo_posixsem_check_post_t mpo_posixsem_check_post;
diff --git a/sys/security/mac/mac_posix_sem.c b/sys/security/mac/mac_posix_sem.c
index 4b401425e4d5b..68fb56c2d1cfc 100644
--- a/sys/security/mac/mac_posix_sem.c
+++ b/sys/security/mac/mac_posix_sem.c
@@ -91,16 +91,6 @@ mac_posixsem_create(struct ucred *cred, struct ksem *ks)
}
int
-mac_posixsem_check_destroy(struct ucred *cred, struct ksem *ks)
-{
- int error;
-
- MAC_CHECK(posixsem_check_destroy, cred, ks, ks->ks_label);
-
- return (error);
-}
-
-int
mac_posixsem_check_open(struct ucred *cred, struct ksem *ks)
{
int error;