summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2015-02-28 14:52:11 -0500
committerAnthony G. Basile <blueness@gentoo.org>2015-02-28 14:52:11 -0500
commitc9a0d6a9244b7424def3525bb719686354aed5f4 (patch)
treeec850fdf0a7b1efb0fa7829a56d7b33454d739f5 /3.18.8/4435_grsec-mute-warnings.patch
parentGrsec/PaX: 3.1-{3.2.67,3.14.33,3.18.7}-201502222138 (diff)
downloadhardened-patchset-c9a0d6a9244b7424def3525bb719686354aed5f4.tar.gz
hardened-patchset-c9a0d6a9244b7424def3525bb719686354aed5f4.tar.bz2
hardened-patchset-c9a0d6a9244b7424def3525bb719686354aed5f4.zip
Grsec/PaX: 3.1-{3.2.67,3.14.34,3.18.8}-20150227184320150227
Diffstat (limited to '3.18.8/4435_grsec-mute-warnings.patch')
-rw-r--r--3.18.8/4435_grsec-mute-warnings.patch43
1 files changed, 43 insertions, 0 deletions
diff --git a/3.18.8/4435_grsec-mute-warnings.patch b/3.18.8/4435_grsec-mute-warnings.patch
new file mode 100644
index 0000000..0585e08
--- /dev/null
+++ b/3.18.8/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 a/Makefile b/Makefile
+--- a/Makefile 2014-12-30 10:18:12.697915684 -0500
++++ b/Makefile 2014-12-30 10:25:59.132931931 -0500
+@@ -298,7 +298,7 @@
+ HOSTCC = gcc
+ HOSTCXX = g++
+ HOSTCFLAGS = -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer -std=gnu89
+-HOSTCFLAGS = -Wall -W -Wmissing-prototypes -Wstrict-prototypes -Wno-unused-parameter -Wno-missing-field-initializers -O2 -fomit-frame-pointer -std=gnu89 -fno-delete-null-pointer-checks
++HOSTCFLAGS = -Wall -Wmissing-prototypes -Wstrict-prototypes -Wno-unused-parameter -Wno-missing-field-initializers -O2 -fomit-frame-pointer -std=gnu89 -fno-delete-null-pointer-checks
+ HOSTCFLAGS += $(call cc-option, -Wno-empty-body)
+ HOSTCXXFLAGS = -O2 -Wall -W -Wno-array-bounds
+