summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2013-12-09 09:50:52 -0500
committerAnthony G. Basile <blueness@gentoo.org>2013-12-09 09:50:52 -0500
commitf5f76b7f471550ff8e1e5a46eb619cd1b0cbacfb (patch)
tree6e69b9aaff14fb9f90e8c8b13ccd43d04c56e020 /3.12.4/4440_grsec-remove-protected-paths.patch
parentGrsec/PaX: 3.0-{3.2.53,3.12.2}-201312032145 (diff)
downloadhardened-patchset-20131208.tar.gz
hardened-patchset-20131208.tar.bz2
hardened-patchset-20131208.zip
Grsec/PaX: 3.0-{2.6.32,3.2.53,3.12.4}-2013120820131208
Diffstat (limited to '3.12.4/4440_grsec-remove-protected-paths.patch')
-rw-r--r--3.12.4/4440_grsec-remove-protected-paths.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/3.12.4/4440_grsec-remove-protected-paths.patch b/3.12.4/4440_grsec-remove-protected-paths.patch
new file mode 100644
index 0000000..05710b1
--- /dev/null
+++ b/3.12.4/4440_grsec-remove-protected-paths.patch
@@ -0,0 +1,19 @@
+From: Anthony G. Basile <blueness@gentoo.org>
+
+We don't want GRSEC's Makefile to change permissions on paths in
+the filesystem.
+
+diff -Naur a/grsecurity/Makefile b/grsecurity/Makefile
+--- a/grsecurity/Makefile 2011-10-19 20:42:50.000000000 -0400
++++ b/grsecurity/Makefile 2011-10-19 20:45:08.000000000 -0400
+@@ -34,10 +34,4 @@
+ ifdef CONFIG_GRKERNSEC_HIDESYM
+ extra-y := grsec_hidesym.o
+ $(obj)/grsec_hidesym.o:
+- @-chmod -f 500 /boot
+- @-chmod -f 500 /lib/modules
+- @-chmod -f 500 /lib64/modules
+- @-chmod -f 500 /lib32/modules
+- @-chmod -f 700 .
+- @echo ' grsec: protected kernel image paths'
+ endif