aboutsummaryrefslogtreecommitdiff
path: root/sys/vm/vm_unix.c
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2011-10-15 12:35:18 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2011-10-15 12:35:18 +0000
commit126b36a21e95b0e34e5e138f80f0eb2bd2034bff (patch)
tree10ce3b912b307ff0aab5766c25781e0abda0ab10 /sys/vm/vm_unix.c
parent2b6ae84b632d50cb1f3689e953c2e1a268abbad9 (diff)
downloadsrc-126b36a21e95b0e34e5e138f80f0eb2bd2034bff.tar.gz
src-126b36a21e95b0e34e5e138f80f0eb2bd2034bff.zip
Control the execution permission of the readable segments for
i386 binaries on the amd64 and ia64 with the sysctl, instead of unconditionally enabling it. Reviewed by: marcel
Notes
Notes: svn path=/head/; revision=226388
Diffstat (limited to 'sys/vm/vm_unix.c')
-rw-r--r--sys/vm/vm_unix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/vm/vm_unix.c b/sys/vm/vm_unix.c
index d4ea3b736da0..253ab775d8ba 100644
--- a/sys/vm/vm_unix.c
+++ b/sys/vm/vm_unix.c
@@ -141,7 +141,7 @@ sys_obreak(td, uap)
prot = VM_PROT_RW;
#ifdef COMPAT_FREEBSD32
#if defined(__amd64__) || defined(__ia64__)
- if (SV_PROC_FLAG(td->td_proc, SV_ILP32))
+ if (i386_read_exec && SV_PROC_FLAG(td->td_proc, SV_ILP32))
prot |= VM_PROT_EXECUTE;
#endif
#endif