From a8da1b45a247d2e0df5c1915877a966b8ec438ca Mon Sep 17 00:00:00 2001 From: rwatson Date: Wed, 26 Sep 2001 20:29:39 +0000 Subject: o Modify access control checks in mmap() to use securelevel_gt() instead of direct variable access. Obtained from: TrustedBSD Project --- sys/vm/vm_mmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/vm') diff --git a/sys/vm/vm_mmap.c b/sys/vm/vm_mmap.c index 0336529..c03c588 100644 --- a/sys/vm/vm_mmap.c +++ b/sys/vm/vm_mmap.c @@ -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); -- cgit v1.1