Lines Matching refs:psem
73 mac_posixsem_label_init(struct pseminfo *psem) in mac_posixsem_label_init() argument
75 mac_labelzone_alloc_owned(&psem->psem_label, MAC_WAITOK, ^(struct label *label) { in mac_posixsem_label_init()
81 mac_posixsem_label(struct pseminfo *psem) in mac_posixsem_label() argument
83 return mac_label_verify(&psem->psem_label); in mac_posixsem_label()
87 mac_posixsem_label_destroy(struct pseminfo *psem) in mac_posixsem_label_destroy() argument
89 mac_labelzone_free_owned(&psem->psem_label, ^(struct label *label) { in mac_posixsem_label_destroy()
95 mac_posixsem_label_associate(kauth_cred_t cred, struct pseminfo *psem, in mac_posixsem_label_associate() argument
98 MAC_PERFORM(posixsem_label_associate, cred, psem, mac_posixsem_label(psem), name); in mac_posixsem_label_associate()
104 struct pseminfo *psem, struct label *plabel, in mac_posixsem_vnode_label_associate() argument
108 psem, plabel, vp, vlabel); in mac_posixsem_vnode_label_associate()
129 mac_posixsem_check_open(kauth_cred_t cred, struct pseminfo *psem) in mac_posixsem_check_open() argument
140 MAC_CHECK(posixsem_check_open, cred, psem, in mac_posixsem_check_open()
141 mac_posixsem_label(psem)); in mac_posixsem_check_open()
147 mac_posixsem_check_post(kauth_cred_t cred, struct pseminfo *psem) in mac_posixsem_check_post() argument
158 MAC_CHECK(posixsem_check_post, cred, psem, mac_posixsem_label(psem)); in mac_posixsem_check_post()
164 mac_posixsem_check_unlink(kauth_cred_t cred, struct pseminfo *psem, in mac_posixsem_check_unlink() argument
176 MAC_CHECK(posixsem_check_unlink, cred, psem, mac_posixsem_label(psem), name); in mac_posixsem_check_unlink()
182 mac_posixsem_check_wait(kauth_cred_t cred, struct pseminfo *psem) in mac_posixsem_check_wait() argument
193 MAC_CHECK(posixsem_check_wait, cred, psem, mac_posixsem_label(psem)); in mac_posixsem_check_wait()