Lines Matching refs:label

124 	mac_labelzone_alloc_owned(&de->dn_label, MAC_WAITOK, ^(struct label *label) {  in mac_devfs_label_init()
126 MAC_PERFORM(devfs_label_init, label); in mac_devfs_label_init()
131 struct label *
140 mac_labelzone_free_owned(&de->dn_label, ^(struct label *label) { in mac_devfs_label_destroy()
141 VFS_KERNEL_DEBUG_START1(3, label); in mac_devfs_label_destroy()
142 MAC_PERFORM(devfs_label_destroy, label); in mac_devfs_label_destroy()
143 VFS_KERNEL_DEBUG_END1(3, label); in mac_devfs_label_destroy()
150 mac_labelzone_alloc_owned(&mp->mnt_mntlabel, MAC_WAITOK, ^(struct label *label) { in mac_mount_label_init()
152 MAC_PERFORM(mount_label_init, label); in mac_mount_label_init()
157 struct label *
166 mac_labelzone_free_owned(&mp->mnt_mntlabel, ^(struct label *label) { in mac_mount_label_destroy()
167 VFS_KERNEL_DEBUG_START1(4, label); in mac_mount_label_destroy()
168 MAC_PERFORM(mount_label_destroy, label); in mac_mount_label_destroy()
169 VFS_KERNEL_DEBUG_END1(4, label); in mac_mount_label_destroy()
173 struct label *
176 return mac_labelzone_alloc_for_owner(vp ? &vp->v_label : NULL, MAC_WAITOK, ^(struct label *label) { in mac_vnode_label_alloc()
178 MAC_PERFORM(vnode_label_init, label); in mac_vnode_label_alloc()
187 struct label *label; in mac_vnode_label_init() local
189 label = mac_vnode_label_alloc(vp); in mac_vnode_label_init()
190 vp->v_label = label; in mac_vnode_label_init()
193 struct label *
200 mac_vnode_label_cleanup(struct label *label) in mac_vnode_label_cleanup() argument
202 VFS_KERNEL_DEBUG_START1(5, label); in mac_vnode_label_cleanup()
203 MAC_PERFORM(vnode_label_destroy, label); in mac_vnode_label_cleanup()
204 VFS_KERNEL_DEBUG_END1(5, label); in mac_vnode_label_cleanup()
209 mac_vnode_label_free(struct label *label) in mac_vnode_label_free() argument
211 if (label != NULL) { in mac_vnode_label_free()
212 mac_vnode_label_cleanup(label); in mac_vnode_label_free()
213 mac_labelzone_free(label); in mac_vnode_label_free()
220 mac_labelzone_free_owned(&vp->v_label, ^(struct label *label) { in mac_vnode_label_destroy()
221 mac_vnode_label_cleanup(label); in mac_vnode_label_destroy()
236 struct label *
253 struct label *v_label = mac_vnode_label(vp); in mac_vnode_label_recycle()
265 mac_vnode_label_copy(struct label *src, struct label *dest) in mac_vnode_label_copy()
289 mac_vnode_label_externalize(struct label *label, char *elements, in mac_vnode_label_externalize() argument
294 error = MAC_EXTERNALIZE(vnode, label, elements, outbuf, outbuflen); in mac_vnode_label_externalize()
300 mac_vnode_label_internalize(struct label *label, char *string) in mac_vnode_label_internalize() argument
304 error = MAC_INTERNALIZE(vnode, label, string); in mac_vnode_label_internalize()
310 mac_mount_label_internalize(struct label *label, char *string) in mac_mount_label_internalize() argument
314 error = MAC_INTERNALIZE(mount, label, string); in mac_mount_label_internalize()
320 mac_mount_label_externalize(struct label *label, char *elements, in mac_mount_label_externalize() argument
325 error = MAC_EXTERNALIZE(mount, label, elements, outbuf, outbuflen); in mac_mount_label_externalize()
331 mac_devfs_label_copy(struct label *src, struct label *dest) in mac_devfs_label_copy()
750 struct label *intlabel) in mac_vnode_label_store()
778 struct vnode *scriptvp, struct label *scriptvnodelabel, struct label *execl, u_int *csflags, in mac_cred_label_update_execve()
855 struct vnode *scriptvp, struct label *scriptvnodelabel, struct label *execlabel, in mac_cred_check_label_update_execve()
1713 struct label *newlabel) in mac_vnode_check_label_update()
2145 mac_vnode_label_update(vfs_context_t ctx, struct vnode *vp, struct label *newlabel) in mac_vnode_label_update()
2148 struct label *tmpl = NULL; in mac_vnode_label_update()
2588 vn_setlabel(struct vnode *vp, struct label *intlabel, vfs_context_t context) in vn_setlabel()
2744 struct label *l; in mac_vnode_label_get()
2758 struct label *l; in mac_vnode_label_set()