mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 01:30:30 -04:00
setsugid() touches p->p_flag so assert that the proc is locked.
This commit is contained in:
parent
a835396035
commit
f2102dadf9
1 changed files with 2 additions and 0 deletions
|
|
@ -1862,6 +1862,8 @@ setlogin(struct thread *td, struct setlogin_args *uap)
|
|||
void
|
||||
setsugid(struct proc *p)
|
||||
{
|
||||
|
||||
PROC_LOCK_ASSERT(p, MA_OWNED);
|
||||
p->p_flag |= P_SUGID;
|
||||
if (!(p->p_pfsflags & PF_ISUGID))
|
||||
p->p_stops = 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue