1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-17 15:27:36 +00:00

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:
Robert Watson 2001-09-26 20:26:32 +00:00
parent b9c6f21493
commit e8a340cd9a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=83984

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