diff options
author | kib <kib@FreeBSD.org> | 2011-10-15 12:35:18 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2011-10-15 12:35:18 +0000 |
commit | 8e118d38cf6e48ba3629cca5b7d2412a6a37847a (patch) | |
tree | 10ce3b912b307ff0aab5766c25781e0abda0ab10 /sys/vm | |
parent | a4fb38841fe96fae9a2afe75cc7c7c3d67b4488d (diff) | |
download | FreeBSD-src-8e118d38cf6e48ba3629cca5b7d2412a6a37847a.zip FreeBSD-src-8e118d38cf6e48ba3629cca5b7d2412a6a37847a.tar.gz |
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
Diffstat (limited to 'sys/vm')
-rw-r--r-- | sys/vm/vm_unix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/vm/vm_unix.c b/sys/vm/vm_unix.c index d4ea3b7..253ab77 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 |