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