Changeset View
Changeset View
Standalone View
Standalone View
sys/kern/kern_prot.c
Show First 20 Lines • Show All 2,185 Lines • ▼ Show 20 Lines | |||||
} | } | ||||
void | void | ||||
setsugid(struct proc *p) | setsugid(struct proc *p) | ||||
{ | { | ||||
PROC_LOCK_ASSERT(p, MA_OWNED); | PROC_LOCK_ASSERT(p, MA_OWNED); | ||||
p->p_flag |= P_SUGID; | p->p_flag |= P_SUGID; | ||||
if (!(p->p_pfsflags & PF_ISUGID)) | |||||
p->p_stops = 0; | |||||
} | } | ||||
/*- | /*- | ||||
* Change a process's effective uid. | * Change a process's effective uid. | ||||
* Side effects: newcred->cr_uid and newcred->cr_uidinfo will be modified. | * Side effects: newcred->cr_uid and newcred->cr_uidinfo will be modified. | ||||
* References: newcred must be an exclusive credential reference for the | * References: newcred must be an exclusive credential reference for the | ||||
* duration of the call. | * duration of the call. | ||||
*/ | */ | ||||
▲ Show 20 Lines • Show All 81 Lines • Show Last 20 Lines |