Revert the suser -> suser_xxx change made previously. It was right

before.
This commit is contained in:
green 2000-08-24 04:54:31 +00:00
parent 702a9ba819
commit dcbb37393d

View File

@ -253,7 +253,7 @@ rtprio(curp, uap)
if (p_trespass(curp, p) != 0)
return (EPERM);
/* disallow setting rtprio in most cases if not superuser */
if (suser_xxx(NULL, curp, PRISON_ROOT) != 0) {
if (suser(curp) != 0) {
/* can't set someone else's */
if (uap->pid)
return (EPERM);