mirror of
https://github.com/opnsense/src.git
synced 2026-04-21 22:27:47 -04:00
Rather than just change the arguments to suser() change the function to
suser_xxx() as well. Pointy hat to: rwatson
This commit is contained in:
parent
89bbe0cd1e
commit
23ab7d0fa2
1 changed files with 1 additions and 1 deletions
|
|
@ -1111,7 +1111,7 @@ osf1_setgid(td, uap)
|
|||
gid = SCARG(uap, gid);
|
||||
oldcred = p->p_ucred;
|
||||
|
||||
if (((error = suser(p->p_ucred, NULL, PRISON_ROOT)) != 0 ) &&
|
||||
if (((error = suser_xxx(p->p_ucred, NULL, PRISON_ROOT)) != 0 ) &&
|
||||
gid != oldcred->cr_rgid && gid != oldcred->cr_svgid)
|
||||
return (error);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue