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:
rwatson 2001-09-26 20:29:39 +00:00
parent 3ac68ecf7b
commit a8da1b45a2

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