From 1d773e5c3170ad6445ded2660199e3bbdd3b9539 Mon Sep 17 00:00:00 2001 From: Tomas Heinrich Date: Tue, 7 Sep 2010 13:23:52 +0200 Subject: [PATCH] build rsyslog with PIE and RELRO --- rsyslog.spec | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/rsyslog.spec b/rsyslog.spec index 4345556..9ce8392 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 07 2010 Tomas Heinrich 4.6.3-2 +- build rsyslog with PIE and RELRO + * Thu Jul 15 2010 Tomas Heinrich 4.6.3-1 - upgrade to new upstream stable version 4.6.3