diff options
author | rwatson <rwatson@FreeBSD.org> | 2005-06-07 05:03:28 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2005-06-07 05:03:28 +0000 |
commit | ee01c1bf47df51bd59376f7a5cbf1ceb8cc9d344 (patch) | |
tree | 9dcdd4c606257264df7d46d3e51f04f3c3241da1 /sys/security/mac_biba | |
parent | 381814902f4b61ed0005ff93023488dfd79a1634 (diff) | |
download | FreeBSD-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_biba')
-rw-r--r-- | sys/security/mac_biba/mac_biba.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/security/mac_biba/mac_biba.c b/sys/security/mac_biba/mac_biba.c index b1c7900..0f5ffc1 100644 --- a/sys/security/mac_biba/mac_biba.c +++ b/sys/security/mac_biba/mac_biba.c @@ -1127,7 +1127,7 @@ mac_biba_create_sysv_msgqueue(struct ucred *cred, } static void -mac_biba_create_sysv_sema(struct ucred *cred, struct semid_kernel *semakptr, +mac_biba_create_sysv_sem(struct ucred *cred, struct semid_kernel *semakptr, struct label *semalabel) { struct mac_biba *source, *dest; @@ -1465,7 +1465,7 @@ mac_biba_cleanup_sysv_msgqueue(struct label *msqlabel) } static void -mac_biba_cleanup_sysv_sema(struct label *semalabel) +mac_biba_cleanup_sysv_sem(struct label *semalabel) { bzero(SLOT(semalabel), sizeof(struct mac_biba)); @@ -3057,7 +3057,7 @@ static struct mac_policy_ops mac_biba_ops = .mpo_init_inpcb_label = mac_biba_init_label_waitcheck, .mpo_init_sysv_msgmsg_label = mac_biba_init_label, .mpo_init_sysv_msgqueue_label = mac_biba_init_label, - .mpo_init_sysv_sema_label = mac_biba_init_label, + .mpo_init_sysv_sem_label = mac_biba_init_label, .mpo_init_sysv_shm_label = mac_biba_init_label, .mpo_init_ipq_label = mac_biba_init_label_waitcheck, .mpo_init_mbuf_label = mac_biba_init_label_waitcheck, @@ -3075,7 +3075,7 @@ static struct mac_policy_ops mac_biba_ops = .mpo_destroy_inpcb_label = mac_biba_destroy_label, .mpo_destroy_sysv_msgmsg_label = mac_biba_destroy_label, .mpo_destroy_sysv_msgqueue_label = mac_biba_destroy_label, - .mpo_destroy_sysv_sema_label = mac_biba_destroy_label, + .mpo_destroy_sysv_sem_label = mac_biba_destroy_label, .mpo_destroy_sysv_shm_label = mac_biba_destroy_label, .mpo_destroy_ipq_label = mac_biba_destroy_label, .mpo_destroy_mbuf_label = mac_biba_destroy_label, @@ -3131,7 +3131,7 @@ static struct mac_policy_ops mac_biba_ops = .mpo_create_inpcb_from_socket = mac_biba_create_inpcb_from_socket, .mpo_create_sysv_msgmsg = mac_biba_create_sysv_msgmsg, .mpo_create_sysv_msgqueue = mac_biba_create_sysv_msgqueue, - .mpo_create_sysv_sema = mac_biba_create_sysv_sema, + .mpo_create_sysv_sem = mac_biba_create_sysv_sem, .mpo_create_sysv_shm = mac_biba_create_sysv_shm, .mpo_create_ipq = mac_biba_create_ipq, .mpo_create_mbuf_from_inpcb = mac_biba_create_mbuf_from_inpcb, @@ -3150,7 +3150,7 @@ static struct mac_policy_ops mac_biba_ops = .mpo_relabel_cred = mac_biba_relabel_cred, .mpo_cleanup_sysv_msgmsg = mac_biba_cleanup_sysv_msgmsg, .mpo_cleanup_sysv_msgqueue = mac_biba_cleanup_sysv_msgqueue, - .mpo_cleanup_sysv_sema = mac_biba_cleanup_sysv_sema, + .mpo_cleanup_sysv_sem = mac_biba_cleanup_sysv_sem, .mpo_cleanup_sysv_shm = mac_biba_cleanup_sysv_shm, .mpo_check_bpfdesc_receive = mac_biba_check_bpfdesc_receive, .mpo_check_cred_relabel = mac_biba_check_cred_relabel, |