mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-03 12:35:02 +00:00
Fix a superuser credential check.
Reviewed by: phk Approved by: jkh
This commit is contained in:
parent
7caf73fb3c
commit
e777d9c31a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=57635
@ -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…
Reference in New Issue
Block a user