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:
parent
03995768f9
commit
9455f9c698
@ -982,8 +982,9 @@ scioctl(dev_t dev, u_long cmd, caddr_t data, int flag, struct thread *td)
|
|||||||
error = suser_td(td);
|
error = suser_td(td);
|
||||||
if (error != 0)
|
if (error != 0)
|
||||||
return error;
|
return error;
|
||||||
if (securelevel > 0)
|
error = securelevel_gt(td->td_proc->p_ucred, 0);
|
||||||
return EPERM;
|
if (error != 0)
|
||||||
|
return error;
|
||||||
#ifdef __i386__
|
#ifdef __i386__
|
||||||
td->td_frame->tf_eflags |= PSL_IOPL;
|
td->td_frame->tf_eflags |= PSL_IOPL;
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user