[rsyslog/f14/master] build rsyslog with PIE and RELRO

Tomas Heinrich theinric at fedoraproject.org
Thu Sep 9 06:08:12 UTC 2010


commit 28f3b97b1fb0ab391189748dd45c81895a06ec43
Author: Tomas Heinrich <theinric at redhat.com>
Date:   Thu Sep 9 08:06:44 2010 +0200

    build rsyslog with PIE and RELRO

 rsyslog.spec |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/rsyslog.spec b/rsyslog.spec
index 4345556..7f1a968 100644
--- a/rsyslog.spec
+++ b/rsyslog.spec
@@ -4,7 +4,7 @@
 Summary: Enhanced system logging and kernel message trapping daemon
 Name: rsyslog
 Version: 4.6.3
-Release: 1%{?dist}
+Release: 2%{?dist}
 License: GPLv3+
 Group: System Environment/Daemons
 URL: http://www.rsyslog.com/
@@ -91,7 +91,8 @@ IETF standard protocol.
 %patch0 -p1 -b .unlimited-select
 
 %build
-export CFLAGS="$RPM_OPT_FLAGS -DSYSLOGD_PIDNAME=\\\"syslogd.pid\\\""
+export CFLAGS="$RPM_OPT_FLAGS -fpie -DSYSLOGD_PIDNAME=\\\"syslogd.pid\\\""
+export LDFLAGS="-pie -Wl,-z,relro -Wl,-z,now"
 %configure	--disable-static \
 		--disable-testbench \
 		--enable-mysql \
@@ -199,6 +200,9 @@ fi
 %{_libdir}/rsyslog/lmnsd_gtls.so
 
 %changelog
+* Tue Sep 09 2010 Tomas Heinrich <theinric at redhat.com> 4.6.3-2
+- build rsyslog with PIE and RELRO
+
 * Thu Jul 15 2010 Tomas Heinrich <theinric at redhat.com> 4.6.3-1
 - upgrade to new upstream stable version 4.6.3
 


More information about the scm-commits mailing list