summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2014-12-30 11:45:30 -0500
committerAnthony G. Basile <blueness@gentoo.org>2014-12-30 11:45:30 -0500
commit1f54d81cd90878aca49e50f0e479e6ad246e8637 (patch)
treeb4c60afcd4fddc8c8626242a7c2b39f0d710669d /3.18.1/4440_grsec-remove-protected-paths.patch
parentGrsec/PaX: 3.0-{3.2.65,3.14.27,3.17.7}-201412211910 (diff)
downloadhardened-patchset-1f54d81cd90878aca49e50f0e479e6ad246e8637.tar.gz
hardened-patchset-1f54d81cd90878aca49e50f0e479e6ad246e8637.tar.bz2
hardened-patchset-1f54d81cd90878aca49e50f0e479e6ad246e8637.zip
Grsec/PaX: 3.0-{3.2.65,3.14.27,3.18.1}-20141228114920141228
Diffstat (limited to '3.18.1/4440_grsec-remove-protected-paths.patch')
-rw-r--r--3.18.1/4440_grsec-remove-protected-paths.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/3.18.1/4440_grsec-remove-protected-paths.patch b/3.18.1/4440_grsec-remove-protected-paths.patch
new file mode 100644
index 0000000..741546d
--- /dev/null
+++ b/3.18.1/4440_grsec-remove-protected-paths.patch
@@ -0,0 +1,20 @@
+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
+@@ -44,11 +44,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 .
+- @-chmod -f 700 $(objtree)
+- @echo ' grsec: protected kernel image paths'
+ endif