Allow !suser() R/O access to ntp_adjtime()
Noticed by: Reg Clemens <reg@dwf.com>
This commit is contained in:
parent
2bffe0d58e
commit
fafbe352c0
@ -276,7 +276,8 @@ ntp_adjtime(struct proc *p, struct ntp_adjtime_args *uap)
|
||||
* the assumption the superuser should know what it is doing.
|
||||
*/
|
||||
modes = ntv.modes;
|
||||
error = suser(p->p_cred->pc_ucred, &p->p_acflag);
|
||||
if (modes)
|
||||
error = suser(p->p_cred->pc_ucred, &p->p_acflag);
|
||||
if (error)
|
||||
return (error);
|
||||
s = splclock();
|
||||
|
Loading…
Reference in New Issue
Block a user