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:
Mike Barcroft 2001-11-02 17:42:03 +00:00
parent 89bbe0cd1e
commit 23ab7d0fa2

View File

@ -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);