Lines Matching +refs:proc +refs:debug
58 SYSCTL_INT(_security_mac_grantbylabel, OID_AUTO, debug, CTLFLAG_RW,
345 struct proc *proc) in mac_grantbylabel_proc_check_resource() argument
349 if (!SLOT(proc->p_textvp->v_label)) { in mac_grantbylabel_proc_check_resource()
350 gbl = gbl_get_vlabel(proc->p_textvp, cred); in mac_grantbylabel_proc_check_resource()
353 SLOT_SET(proc->p_textvp->v_label, gbl); in mac_grantbylabel_proc_check_resource()
364 struct proc *proc; in mac_grantbylabel_syscall() local
407 proc = curproc; in mac_grantbylabel_syscall()
409 proc = pfind(gbl_args.u.pid); in mac_grantbylabel_syscall()
410 if (proc == NULL) in mac_grantbylabel_syscall()
412 else if (proc->p_textvp == NULL) { in mac_grantbylabel_syscall()
413 PROC_UNLOCK(proc); in mac_grantbylabel_syscall()
418 gbl_args.gbl = (SLOT(proc->p_textvp->v_label) | in mac_grantbylabel_syscall()
419 SLOT(proc->p_label)); in mac_grantbylabel_syscall()
421 PROC_UNLOCK(proc); in mac_grantbylabel_syscall()
486 SLOT_SET(imgp->proc->p_label, gbl); in mac_grantbylabel_vnode_execve_will_transition()