summaryrefslogtreecommitdiffstats
path: root/sys/sys/sysent.h
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2011-10-15 12:35:18 +0000
committerkib <kib@FreeBSD.org>2011-10-15 12:35:18 +0000
commit8e118d38cf6e48ba3629cca5b7d2412a6a37847a (patch)
tree10ce3b912b307ff0aab5766c25781e0abda0ab10 /sys/sys/sysent.h
parenta4fb38841fe96fae9a2afe75cc7c7c3d67b4488d (diff)
downloadFreeBSD-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/sys/sysent.h')
-rw-r--r--sys/sys/sysent.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/sys/sysent.h b/sys/sys/sysent.h
index 6a4b485..d916cf1 100644
--- a/sys/sys/sysent.h
+++ b/sys/sys/sysent.h
@@ -151,6 +151,10 @@ extern struct sysentvec null_sysvec;
extern struct sysent sysent[];
extern const char *syscallnames[];
+#if defined(__amd64__) || defined(__ia64__)
+extern int i386_read_exec;
+#endif
+
#define NO_SYSCALL (-1)
struct module;
OpenPOWER on IntegriCloud