Fix a superuser credential check.
Reviewed by: phk Approved by: jkh
This commit is contained in:
parent
e17787fbf1
commit
c56af6f61f
@ -51,8 +51,10 @@ ipcperm(p, perm, mode)
|
||||
int mode;
|
||||
{
|
||||
struct ucred *cred = p->p_ucred;
|
||||
int error;
|
||||
|
||||
if (suser(p))
|
||||
error = suser(p);
|
||||
if (!error)
|
||||
return (0);
|
||||
|
||||
/* Check for user match. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user