Lines Matching refs:intlabel

167 	struct label *intlabel;  in sys___mac_set_proc()  local
191 intlabel = mac_cred_label_alloc(); in sys___mac_set_proc()
192 error = mac_cred_internalize_label(intlabel, buffer); in sys___mac_set_proc()
203 error = mac_cred_check_relabel(oldcred, intlabel); in sys___mac_set_proc()
212 mac_cred_relabel(newcred, intlabel); in sys___mac_set_proc()
220 mac_cred_label_free(intlabel); in sys___mac_set_proc()
228 struct label *intlabel; in sys___mac_get_fd() local
266 intlabel = mac_vnode_label_alloc(); in sys___mac_get_fd()
268 mac_vnode_copy_label(vp->v_label, intlabel); in sys___mac_get_fd()
270 error = mac_vnode_externalize_label(intlabel, elements, in sys___mac_get_fd()
272 mac_vnode_label_free(intlabel); in sys___mac_get_fd()
281 intlabel = mac_pipe_label_alloc(); in sys___mac_get_fd()
283 mac_pipe_copy_label(pipe->pipe_pair->pp_label, intlabel); in sys___mac_get_fd()
285 error = mac_pipe_externalize_label(intlabel, elements, in sys___mac_get_fd()
287 mac_pipe_label_free(intlabel); in sys___mac_get_fd()
296 intlabel = mac_socket_label_alloc(M_WAITOK); in sys___mac_get_fd()
298 mac_socket_copy_label(so->so_label, intlabel); in sys___mac_get_fd()
300 error = mac_socket_externalize_label(intlabel, elements, in sys___mac_get_fd()
302 mac_socket_label_free(intlabel); in sys___mac_get_fd()
338 struct label *intlabel; in kern___mac_get_path() local
366 intlabel = mac_vnode_label_alloc(); in kern___mac_get_path()
367 mac_vnode_copy_label(nd.ni_vp->v_label, intlabel); in kern___mac_get_path()
368 error = mac_vnode_externalize_label(intlabel, elements, buffer, in kern___mac_get_path()
372 mac_vnode_label_free(intlabel); in kern___mac_get_path()
387 struct label *intlabel; in sys___mac_set_fd() local
425 intlabel = mac_vnode_label_alloc(); in sys___mac_set_fd()
426 error = mac_vnode_internalize_label(intlabel, buffer); in sys___mac_set_fd()
428 mac_vnode_label_free(intlabel); in sys___mac_set_fd()
434 mac_vnode_label_free(intlabel); in sys___mac_set_fd()
438 error = vn_setlabel(vp, intlabel, td->td_ucred); in sys___mac_set_fd()
441 mac_vnode_label_free(intlabel); in sys___mac_set_fd()
449 intlabel = mac_pipe_label_alloc(); in sys___mac_set_fd()
450 error = mac_pipe_internalize_label(intlabel, buffer); in sys___mac_set_fd()
455 pipe->pipe_pair, intlabel); in sys___mac_set_fd()
458 mac_pipe_label_free(intlabel); in sys___mac_set_fd()
466 intlabel = mac_socket_label_alloc(M_WAITOK); in sys___mac_set_fd()
467 error = mac_socket_internalize_label(intlabel, buffer); in sys___mac_set_fd()
471 intlabel); in sys___mac_set_fd()
473 mac_socket_label_free(intlabel); in sys___mac_set_fd()
504 struct label *intlabel; in kern___mac_set_path() local
529 intlabel = mac_vnode_label_alloc(); in kern___mac_set_path()
530 error = mac_vnode_internalize_label(intlabel, buffer); in kern___mac_set_path()
540 error = vn_setlabel(nd.ni_vp, intlabel, in kern___mac_set_path()
548 mac_vnode_label_free(intlabel); in kern___mac_set_path()