o Modify pc98 syscons code to use securelevel_gt() instead of

direct variable checks.  (Yet another API to perform direct hardware I/O).

Obtained from:	TrustedBSD Project
This commit is contained in:
rwatson 2001-09-26 20:26:32 +00:00
parent 03995768f9
commit 9455f9c698

View File

@ -982,8 +982,9 @@ scioctl(dev_t dev, u_long 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(td->td_proc->p_ucred, 0);
if (error != 0)
return error;
#ifdef __i386__
td->td_frame->tf_eflags |= PSL_IOPL;
#endif