Lines Matching defs:intlabel

237 	struct label *intlabel;
245 intlabel = mac_cred_label_alloc();
246 error = mac_cred_internalize_label(intlabel, mac->m_string);
248 mac_cred_label_free(intlabel);
252 *mac_set_proc_data = intlabel;
271 struct label *const intlabel = mac_set_proc_data;
278 error = mac_cred_check_relabel(p->p_ucred, intlabel);
282 mac_cred_relabel(newcred, intlabel);
297 struct label *const intlabel = mac_set_proc_data;
303 mac_cred_label_free(intlabel);
310 void *intlabel;
319 error = mac_set_proc_prepare(td, &mac, &intlabel);
329 error = mac_set_proc_core(td, newcred, intlabel);
342 mac_set_proc_finish(td, error == 0, intlabel);
352 struct label *intlabel;
379 intlabel = mac_vnode_label_alloc();
381 mac_vnode_copy_label(vp->v_label, intlabel);
383 error = mac_vnode_externalize_label(intlabel, mac.m_string,
385 mac_vnode_label_free(intlabel);
394 intlabel = mac_pipe_label_alloc();
396 mac_pipe_copy_label(pipe->pipe_pair->pp_label, intlabel);
398 error = mac_pipe_externalize_label(intlabel, mac.m_string,
400 mac_pipe_label_free(intlabel);
409 intlabel = mac_socket_label_alloc(M_WAITOK);
411 mac_socket_copy_label(so->so_label, intlabel);
413 error = mac_socket_externalize_label(intlabel, mac.m_string,
415 mac_socket_label_free(intlabel);
451 struct label *intlabel;
468 intlabel = mac_vnode_label_alloc();
469 mac_vnode_copy_label(nd.ni_vp->v_label, intlabel);
470 error = mac_vnode_externalize_label(intlabel, mac.m_string, buffer,
474 mac_vnode_label_free(intlabel);
489 struct label *intlabel;
515 intlabel = mac_vnode_label_alloc();
516 error = mac_vnode_internalize_label(intlabel, mac.m_string);
518 mac_vnode_label_free(intlabel);
524 mac_vnode_label_free(intlabel);
528 error = vn_setlabel(vp, intlabel, td->td_ucred);
531 mac_vnode_label_free(intlabel);
539 intlabel = mac_pipe_label_alloc();
540 error = mac_pipe_internalize_label(intlabel, mac.m_string);
545 pipe->pipe_pair, intlabel);
548 mac_pipe_label_free(intlabel);
556 intlabel = mac_socket_label_alloc(M_WAITOK);
557 error = mac_socket_internalize_label(intlabel, mac.m_string);
561 intlabel);
563 mac_socket_label_free(intlabel);
594 struct label *intlabel;
607 intlabel = mac_vnode_label_alloc();
608 error = mac_vnode_internalize_label(intlabel, mac.m_string);
618 error = vn_setlabel(nd.ni_vp, intlabel,
626 mac_vnode_label_free(intlabel);