mirror of
https://github.com/opnsense/src.git
synced 2026-06-04 14:26:03 -04:00
o Modify i386_set_ioperm() to use securelevel_gt() instead of
direct securelevel variable checks. Obtained from: TrustedBSD Project
This commit is contained in:
parent
1851c8fd41
commit
330e78897a
2 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue