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
@ -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…
x
Reference in New Issue
Block a user