Lines Matching refs:label
93 struct label *
96 struct label *label; in mac_cred_label_alloc() local
98 label = mac_labelzone_alloc(MAC_WAITOK); in mac_cred_label_alloc()
99 if (label == NULL) { in mac_cred_label_alloc()
102 MAC_PERFORM(cred_label_init, label); in mac_cred_label_alloc()
103 return label; in mac_cred_label_alloc()
116 struct label **seal = (struct label **)-1; in mac_cred_label_seal()
125 mac_cred_label_free(struct label *label) in mac_cred_label_free() argument
128 struct label **seal = (struct label **)-1; in mac_cred_label_free()
130 if (label->l_owner == seal) { in mac_cred_label_free()
132 zalloc_ro_update_field(ZONE_ID_MAC_LABEL, label, l_owner, &seal); in mac_cred_label_free()
136 MAC_PERFORM(cred_label_destroy, label); in mac_cred_label_free()
137 mac_labelzone_free(label); in mac_cred_label_free()
140 struct label *
147 mac_cred_label_is_equal(const struct label *a, const struct label *b) in mac_cred_label_is_equal()
153 mac_cred_label_hash_update(const struct label *a, uint32_t hash) in mac_cred_label_hash_update()
176 struct label *label = mac_cred_label(cred); in mac_cred_label_destroy() local
178 mac_cred_label_free(label); in mac_cred_label_destroy()
182 mac_cred_label_externalize(struct label *label, char *elements, in mac_cred_label_externalize() argument
187 error = MAC_EXTERNALIZE(cred, label, elements, outbuf, outbuflen); in mac_cred_label_externalize()
193 mac_cred_label_internalize(struct label *label, char *string) in mac_cred_label_internalize() argument
197 error = MAC_INTERNALIZE(cred, label, string); in mac_cred_label_internalize()
254 struct label *execlabel; in mac_execve_enter()
277 mac_cred_label_update(kauth_cred_t cred, struct label *newlabel) in mac_cred_label_update()
289 mac_cred_check_label_update(kauth_cred_t cred, struct label *newlabel) in mac_cred_check_label_update()