[rsyslog] build rsyslog with PIE and RELRO
Tomas Heinrich
theinric at fedoraproject.org
Tue Sep 7 11:23:58 UTC 2010
commit 1d773e5c3170ad6445ded2660199e3bbdd3b9539
Author: Tomas Heinrich <theinric at redhat.com>
Date: Tue Sep 7 13:23:52 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..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 <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