summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2017-04-22 12:08:04 -0400
committerAnthony G. Basile <blueness@gentoo.org>2017-04-22 12:08:04 -0400
commita6383ddcf48aac166b64e6008cbceb4476975279 (patch)
tree378807c872bdda51eaeff69ff7752e95142c8710 /4.9.24/4435_grsec-mute-warnings.patch
parentgrsecurity-3.1-4.9.23-201704181901 (diff)
downloadhardened-patchset-a6383ddcf48aac166b64e6008cbceb4476975279.tar.gz
hardened-patchset-a6383ddcf48aac166b64e6008cbceb4476975279.tar.bz2
hardened-patchset-a6383ddcf48aac166b64e6008cbceb4476975279.zip
grsecurity-3.1-4.9.24-201704220732HEAD20170422master
Diffstat (limited to '4.9.24/4435_grsec-mute-warnings.patch')
-rw-r--r--4.9.24/4435_grsec-mute-warnings.patch43
1 files changed, 43 insertions, 0 deletions
diff --git a/4.9.24/4435_grsec-mute-warnings.patch b/4.9.24/4435_grsec-mute-warnings.patch
new file mode 100644
index 0000000..8929222
--- /dev/null
+++ b/4.9.24/4435_grsec-mute-warnings.patch
@@ -0,0 +1,43 @@
+From: Anthony G. Basile <blueness@gentoo.org>
+Updated patch for 2.6.38.6
+
+The credits/description from the original version of this patch remain accurate
+and are included below.
+
+---
+From: Jory A. Pratt <anarchy@gentoo.org>
+Updated patch for kernel 2.6.32
+
+The credits/description from the original version of this patch remain accurate
+and are included below.
+
+---
+From: Gordon Malm <gengor@gentoo.org>
+
+Updated patch for kernel series 2.6.24.
+
+The credits/description from the original version of this patch remain accurate
+and are included below.
+
+---
+From: Alexander Gabert <gaberta@fh-trier.de>
+
+This patch removes the warnings introduced by grsec patch 2.1.9 and later.
+It removes the -W options added by the patch and restores the original
+warning flags of vanilla kernel versions.
+
+Acked-by: Christian Heim <phreak@gentoo.org>
+---
+
+diff -Naur linux-4.0.2-hardened.orig/Makefile linux-4.0.2-hardened/Makefile
+--- linux-4.0.2-hardened.orig/Makefile 2015-05-09 21:08:19.243113731 -0400
++++ linux-4.0.2-hardened/Makefile 2015-05-09 21:10:37.775120037 -0400
+@@ -302,7 +302,7 @@
+ HOSTCC = gcc
+ HOSTCXX = g++
+ HOSTCFLAGS = -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer -std=gnu89
+-HOSTCFLAGS = -W -Wno-unused-parameter -Wno-missing-field-initializers -fno-delete-null-pointer-checks
++HOSTCFLAGS = -Wno-unused-parameter -Wno-missing-field-initializers -fno-delete-null-pointer-checks
+ HOSTCFLAGS += $(call cc-option, -Wno-empty-body)
+ HOSTCXXFLAGS = -O2 -Wall -W -Wno-array-bounds
+