ahs3 pushed to acpica-tools (f22). "Add hardening flags for f23 (..more)"

notifications at fedoraproject.org notifications at fedoraproject.org
Tue Apr 7 16:19:54 UTC 2015


>From c248bcf7ad9c8bd04cb17dfb01f5f9d8a357be9f Mon Sep 17 00:00:00 2001
From: Al Stone <ahs3 at redhat.com>
Date: Mon, 6 Apr 2015 17:17:50 -0600
Subject: Add hardening flags for f23

Signed-off-by: Al Stone <ahs3 at redhat.com>

diff --git a/acpica-tools.spec b/acpica-tools.spec
index a1b6dad..9c8e15b 100644
--- a/acpica-tools.spec
+++ b/acpica-tools.spec
@@ -32,6 +32,7 @@ Patch5:         aapits-makefile.patch
 Patch6:		re-enable-big-endian.patch
 Patch7:		OPT_LDFLAGS.patch
 Patch8:		int-format.patch
+Patch9:		f23-harden.patch
 
 BuildRequires:  bison patchutils flex
 
@@ -91,6 +92,7 @@ gzip -dc %{SOURCE1} | tar -x --strip-components=1 -f -
 %patch6 -p1 -b .re-enable-big-endian
 %patch7 -p1 -b .OPT_LDFLAGS
 %patch8 -p1 -b .int-format
+%patch9 -p1 -b .f23-harden
 
 cp -p %{SOURCE2} README.Fedora
 cp -p %{SOURCE3} iasl.1
diff --git a/f23-harden.patch b/f23-harden.patch
new file mode 100644
index 0000000..73e3432
--- /dev/null
+++ b/f23-harden.patch
@@ -0,0 +1,12 @@
+diff -Naur acpica-unix2-20150204/generate/unix/Makefile.config acpica-unix2-20150204-new/generate/unix/Makefile.config
+--- acpica-unix2-20150204/generate/unix/Makefile.config	2015-04-06 17:12:41.069521987 -0600
++++ acpica-unix2-20150204-new/generate/unix/Makefile.config	2015-04-06 17:14:43.218806842 -0600
+@@ -159,6 +159,8 @@
+ OPT_CFLAGS += -D_FORTIFY_SOURCE=2
+ endif
+ 
++OPT_CFLAGS += -fPIC -pie
++
+ CFLAGS += \
+     -D$(HOST)\
+     -D_GNU_SOURCE\
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/acpica-tools.git/commit/?h=f22&id=c248bcf7ad9c8bd04cb17dfb01f5f9d8a357be9f


More information about the scm-commits mailing list