mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
o Modify access control checks in mmap() to use securelevel_gt() instead
of direct variable access. Obtained from: TrustedBSD Project
This commit is contained in:
parent
3026f29e34
commit
8c5d4fe829
1 changed files with 1 additions and 1 deletions
|
|
@ -355,7 +355,7 @@ mmap(td, uap)
|
|||
* other securelevel.
|
||||
* XXX this will have to go
|
||||
*/
|
||||
if (securelevel >= 1)
|
||||
if (securelevel_ge(td->td_proc->p_ucred, 1))
|
||||
disablexworkaround = 1;
|
||||
else
|
||||
disablexworkaround = suser_td(td);
|
||||
|
|
|
|||
Loading…
Reference in a new issue