diff options
author | Anthony G. Basile <blueness@gentoo.org> | 2014-04-12 09:28:29 -0400 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2014-04-12 09:28:29 -0400 |
commit | 5e6fbb4f285c55db71cccc1ff23ab96a16ada8d3 (patch) | |
tree | 7c6d79801963e595fe8d6b5f5a955af7b0d8a07a /3.13.9/4475_emutramp_default_on.patch | |
parent | Grsec/PaX: 3.0-{3.2.56,3.13.8}-201404062127 (diff) | |
download | hardened-patchset-5e6fbb4f285c55db71cccc1ff23ab96a16ada8d3.tar.gz hardened-patchset-5e6fbb4f285c55db71cccc1ff23ab96a16ada8d3.tar.bz2 hardened-patchset-5e6fbb4f285c55db71cccc1ff23ab96a16ada8d3.zip |
Grsec/PaX: 3.0-{3.2.57,3.13.9}-201404111812
Diffstat (limited to '3.13.9/4475_emutramp_default_on.patch')
-rw-r--r-- | 3.13.9/4475_emutramp_default_on.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/3.13.9/4475_emutramp_default_on.patch b/3.13.9/4475_emutramp_default_on.patch new file mode 100644 index 0000000..a453a5b --- /dev/null +++ b/3.13.9/4475_emutramp_default_on.patch @@ -0,0 +1,21 @@ +From: Anthony G. Basile <blueness@gentoo.org> + +PAX_EMUTRAMP is needed for libffi to avoid RWX mmap-ings using PaX emulation of trampolines. +We default PAX_EMUTRAMP='y' since almost all hardened users will want this. + +See bug: + http://bugs.gentoo.org/show_bug.cgi?id=329499 + http://bugs.gentoo.org/show_bug.cgi?id=457194 + +diff -Naur linux-3.9.2-hardened.orig/security/Kconfig linux-3.9.2-hardened/security/Kconfig +--- linux-3.9.2-hardened.orig/security/Kconfig 2013-05-18 08:53:41.000000000 -0400 ++++ linux-3.9.2-hardened/security/Kconfig 2013-05-18 09:17:57.000000000 -0400 +@@ -428,7 +428,7 @@ + + config PAX_EMUTRAMP + bool "Emulate trampolines" +- default y if PARISC || GRKERNSEC_CONFIG_AUTO ++ default y + depends on (PAX_PAGEEXEC || PAX_SEGMEXEC) && (PARISC || X86) + help + There are some programs and libraries that for one reason or |