summaryrefslogtreecommitdiffstats
path: root/sys/security/mac_mls/mac_mls.c
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2005-06-07 05:03:28 +0000
committerrwatson <rwatson@FreeBSD.org>2005-06-07 05:03:28 +0000
commitee01c1bf47df51bd59376f7a5cbf1ceb8cc9d344 (patch)
tree9dcdd4c606257264df7d46d3e51f04f3c3241da1 /sys/security/mac_mls/mac_mls.c
parent381814902f4b61ed0005ff93023488dfd79a1634 (diff)
downloadFreeBSD-src-ee01c1bf47df51bd59376f7a5cbf1ceb8cc9d344.zip
FreeBSD-src-ee01c1bf47df51bd59376f7a5cbf1ceb8cc9d344.tar.gz
Gratuitous renaming of four System V Semaphore MAC Framework entry
points to convert _sema() to _sem() for consistency purposes with respect to the other semaphore-related entry points: mac_init_sysv_sema() -> mac_init_sysv_sem() mac_destroy_sysv_sem() -> mac_destroy_sysv_sem() mac_create_sysv_sema() -> mac_create_sysv_sem() mac_cleanup_sysv_sema() -> mac_cleanup_sysv_sem() Congruent changes are made to the policy interface to support this. Obtained from: TrustedBSD Project Sponsored by: SPAWAR, SPARTA
Diffstat (limited to 'sys/security/mac_mls/mac_mls.c')
-rw-r--r--sys/security/mac_mls/mac_mls.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/security/mac_mls/mac_mls.c b/sys/security/mac_mls/mac_mls.c
index c1ef756..b630355 100644
--- a/sys/security/mac_mls/mac_mls.c
+++ b/sys/security/mac_mls/mac_mls.c
@@ -1096,7 +1096,7 @@ mac_mls_create_sysv_msgqueue(struct ucred *cred, struct msqid_kernel *msqkptr,
}
static void
-mac_mls_create_sysv_sema(struct ucred *cred, struct semid_kernel *semakptr,
+mac_mls_create_sysv_sem(struct ucred *cred, struct semid_kernel *semakptr,
struct label *semalabel)
{
struct mac_mls *source, *dest;
@@ -1394,7 +1394,7 @@ mac_mls_cleanup_sysv_msgqueue(struct label *msqlabel)
}
static void
-mac_mls_cleanup_sysv_sema(struct label *semalabel)
+mac_mls_cleanup_sysv_sem(struct label *semalabel)
{
bzero(SLOT(semalabel), sizeof(struct mac_mls));
@@ -2831,7 +2831,7 @@ static struct mac_policy_ops mac_mls_ops =
.mpo_init_inpcb_label = mac_mls_init_label_waitcheck,
.mpo_init_sysv_msgmsg_label = mac_mls_init_label,
.mpo_init_sysv_msgqueue_label = mac_mls_init_label,
- .mpo_init_sysv_sema_label = mac_mls_init_label,
+ .mpo_init_sysv_sem_label = mac_mls_init_label,
.mpo_init_sysv_shm_label = mac_mls_init_label,
.mpo_init_ipq_label = mac_mls_init_label_waitcheck,
.mpo_init_mbuf_label = mac_mls_init_label_waitcheck,
@@ -2849,7 +2849,7 @@ static struct mac_policy_ops mac_mls_ops =
.mpo_destroy_inpcb_label = mac_mls_destroy_label,
.mpo_destroy_sysv_msgmsg_label = mac_mls_destroy_label,
.mpo_destroy_sysv_msgqueue_label = mac_mls_destroy_label,
- .mpo_destroy_sysv_sema_label = mac_mls_destroy_label,
+ .mpo_destroy_sysv_sem_label = mac_mls_destroy_label,
.mpo_destroy_sysv_shm_label = mac_mls_destroy_label,
.mpo_destroy_ipq_label = mac_mls_destroy_label,
.mpo_destroy_mbuf_label = mac_mls_destroy_label,
@@ -2906,7 +2906,7 @@ static struct mac_policy_ops mac_mls_ops =
.mpo_create_ipq = mac_mls_create_ipq,
.mpo_create_sysv_msgmsg = mac_mls_create_sysv_msgmsg,
.mpo_create_sysv_msgqueue = mac_mls_create_sysv_msgqueue,
- .mpo_create_sysv_sema = mac_mls_create_sysv_sema,
+ .mpo_create_sysv_sem = mac_mls_create_sysv_sem,
.mpo_create_sysv_shm = mac_mls_create_sysv_shm,
.mpo_create_mbuf_from_inpcb = mac_mls_create_mbuf_from_inpcb,
.mpo_create_mbuf_from_mbuf = mac_mls_create_mbuf_from_mbuf,
@@ -2924,7 +2924,7 @@ static struct mac_policy_ops mac_mls_ops =
.mpo_relabel_cred = mac_mls_relabel_cred,
.mpo_cleanup_sysv_msgmsg = mac_mls_cleanup_sysv_msgmsg,
.mpo_cleanup_sysv_msgqueue = mac_mls_cleanup_sysv_msgqueue,
- .mpo_cleanup_sysv_sema = mac_mls_cleanup_sysv_sema,
+ .mpo_cleanup_sysv_sem = mac_mls_cleanup_sysv_sem,
.mpo_cleanup_sysv_shm = mac_mls_cleanup_sysv_shm,
.mpo_check_bpfdesc_receive = mac_mls_check_bpfdesc_receive,
.mpo_check_cred_relabel = mac_mls_check_cred_relabel,
OpenPOWER on IntegriCloud