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:
Robert Watson 2001-09-26 20:29:39 +00:00
parent 3026f29e34
commit 8c5d4fe829

View file

@ -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);