o Modify pcvt ioctl() security checks to use securelevel_gt() instead
of direct securelevel variable checks. (Yet another API to perform direct hardware I/O using KDENABIO.) Obtained from: TrustedBSD Project
This commit is contained in:
parent
9997f52470
commit
ce3a32b6da
@ -2619,8 +2619,9 @@ usl_vt_ioctl(dev_t dev, int cmd, caddr_t data, int flag, struct thread *td)
|
||||
error = suser_td(td);
|
||||
if (error != 0)
|
||||
return (error);
|
||||
if (securelevel > 0)
|
||||
return (EPERM);
|
||||
error = securelevel_gt(p->p_ucred, 0);
|
||||
if (error != 0)
|
||||
return (error);
|
||||
|
||||
fp->tf_eflags |= PSL_IOPL;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user