diff options
author | rwatson <rwatson@FreeBSD.org> | 2001-09-26 20:29:39 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2001-09-26 20:29:39 +0000 |
commit | a8da1b45a247d2e0df5c1915877a966b8ec438ca (patch) | |
tree | ca9619b2967fbbdc8a4bf06c2799597f90883cd2 | |
parent | 3ac68ecf7b7d611d166b7325afb39884bd0bcfa7 (diff) | |
download | FreeBSD-src-a8da1b45a247d2e0df5c1915877a966b8ec438ca.zip FreeBSD-src-a8da1b45a247d2e0df5c1915877a966b8ec438ca.tar.gz |
o Modify access control checks in mmap() to use securelevel_gt() instead
of direct variable access.
Obtained from: TrustedBSD Project
-rw-r--r-- | sys/vm/vm_mmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |