o Modify i386_set_ioperm() to use securelevel_gt() instead of

direct securelevel variable checks.

Obtained from:	TrustedBSD Project
This commit is contained in:
Robert Watson 2001-09-26 20:08:15 +00:00
parent 1851c8fd41
commit 330e78897a
2 changed files with 4 additions and 4 deletions

View File

@ -185,8 +185,8 @@ i386_set_ioperm(td, args)
if ((error = suser_td(td)) != 0)
return (error);
if (securelevel > 0)
return (EPERM);
if ((error = securelevel_gt(td->td_proc->p_ucred, 0)) != 0)
return (error);
/*
* XXX
* While this is restricted to root, we should probably figure out

View File

@ -185,8 +185,8 @@ i386_set_ioperm(td, args)
if ((error = suser_td(td)) != 0)
return (error);
if (securelevel > 0)
return (EPERM);
if ((error = securelevel_gt(td->td_proc->p_ucred, 0)) != 0)
return (error);
/*
* XXX
* While this is restricted to root, we should probably figure out