summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2015-07-26 10:58:55 -0400
committerAnthony G. Basile <blueness@gentoo.org>2015-07-26 10:58:55 -0400
commit4ebff2984d3a400f1b57bce913d936abea740202 (patch)
treea9b53e8017f254a41dc10493e1db6fae35ed03d0 /4.1.3/4440_grsec-remove-protected-paths.patch
parentGrsec/PaX: 3.1-{3.2.69,3.14.48,4.0.8}-201507111211 (diff)
downloadhardened-patchset-4ebff2984d3a400f1b57bce913d936abea740202.tar.gz
hardened-patchset-4ebff2984d3a400f1b57bce913d936abea740202.tar.bz2
hardened-patchset-4ebff2984d3a400f1b57bce913d936abea740202.zip
grsecurity-{3.2.69,3.14,48,4.1.3}-20150725141920150725
Diffstat (limited to '4.1.3/4440_grsec-remove-protected-paths.patch')
-rw-r--r--4.1.3/4440_grsec-remove-protected-paths.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/4.1.3/4440_grsec-remove-protected-paths.patch b/4.1.3/4440_grsec-remove-protected-paths.patch
new file mode 100644
index 0000000..741546d
--- /dev/null
+++ b/4.1.3/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