Lines Matching refs:proc
102 struct proc *p = td->td_proc; in sys_getpid()
129 struct proc *p = td->td_proc; in kern_getppid()
145 struct proc *p = td->td_proc; in sys_getpgrp()
162 struct proc *p; in sys_getpgid()
201 struct proc *p; in kern_getsid()
329 struct proc *p = td->td_proc; in sys_setsid()
383 struct proc *curp = td->td_proc; in sys_setpgid()
384 struct proc *targp; /* target process */ in sys_setpgid()
482 struct proc *p = td->td_proc; in sys_setuid()
601 struct proc *p = td->td_proc; in sys_seteuid()
657 struct proc *p = td->td_proc; in sys_setgid()
755 struct proc *p = td->td_proc; in sys_setegid()
828 struct proc *p = td->td_proc; in kern_setgroups()
882 struct proc *p = td->td_proc; in sys_setreuid()
957 struct proc *p = td->td_proc; in sys_setregid()
1022 struct proc *p = td->td_proc; in sys_setresuid()
1109 struct proc *p = td->td_proc; in sys_setresgid()
1228 struct proc *p = td->td_proc; in sys_issetugid()
1246 struct proc *p; in sys___setugid()
1463 p_cansee(struct thread *td, struct proc *p) in p_cansee()
1493 cr_cansignal(struct ucred *cred, struct proc *proc, int signum) in cr_cansignal() argument
1497 PROC_LOCK_ASSERT(proc, MA_OWNED); in cr_cansignal()
1502 error = prison_check(cred, proc->p_ucred); in cr_cansignal()
1506 if ((error = mac_proc_check_signal(cred, proc, signum))) in cr_cansignal()
1509 if ((error = cr_canseeotheruids(cred, proc->p_ucred))) in cr_cansignal()
1511 if ((error = cr_canseeothergids(cred, proc->p_ucred))) in cr_cansignal()
1519 if (conservative_signals && (proc->p_flag & P_SUGID)) { in cr_cansignal()
1550 if (cred->cr_ruid != proc->p_ucred->cr_ruid && in cr_cansignal()
1551 cred->cr_ruid != proc->p_ucred->cr_svuid && in cr_cansignal()
1552 cred->cr_uid != proc->p_ucred->cr_ruid && in cr_cansignal()
1553 cred->cr_uid != proc->p_ucred->cr_svuid) { in cr_cansignal()
1571 p_cansignal(struct thread *td, struct proc *p, int signum) in p_cansignal()
1612 p_cansched(struct thread *td, struct proc *p) in p_cansched()
1680 p_candebug(struct thread *td, struct proc *p) in p_candebug()
1808 p_canwait(struct thread *td, struct proc *p) in p_canwait()
1930 struct proc *p; in crcowsync()
2163 proc_set_cred_init(struct proc *p, struct ucred *newcred) in proc_set_cred_init()
2180 proc_set_cred(struct proc *p, struct ucred *newcred) in proc_set_cred()
2200 proc_unset_cred(struct proc *p) in proc_unset_cred()
2219 crcopysafe(struct proc *p, struct ucred *cr) in crcopysafe()
2342 struct proc *p = td->td_proc; in sys_getlogin()
2369 struct proc *p = td->td_proc; in sys_setlogin()
2394 setsugid(struct proc *p) in setsugid()