From ed55e0b81fc95549fce57b97cb66e1a037296685 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Nov 19 2015 16:11:03 +0000 Subject: import authd-1.4.3-42.el7 --- diff --git a/SOURCES/authd-1.4.3-relro.patch b/SOURCES/authd-1.4.3-relro.patch new file mode 100644 index 0000000..c04529f --- /dev/null +++ b/SOURCES/authd-1.4.3-relro.patch @@ -0,0 +1,12 @@ +diff -up authd-1.4.3/GNUmakefile.relro authd-1.4.3/GNUmakefile +--- authd-1.4.3/GNUmakefile.relro 2015-07-27 15:25:20.612492532 +0200 ++++ authd-1.4.3/GNUmakefile 2015-07-27 15:25:36.505436894 +0200 +@@ -10,7 +10,7 @@ URL=$(shell gcc -E -dM config.h|awk '$$2 + PROJECT_ID := $(PACKAGE)-$(VERSION) + + #CFLAGS=-std=gnu99 -Wall -W -g -O0 +-LDFLAGS=-lcrypto ++LDFLAGS=-lcrypto -pie -Wl,-z,relro,-z,now + + targets := in.authd $(patsubst %.po,%.mo,$(wildcard *.po)) + docs := README.html COPYING diff --git a/SPECS/authd.spec b/SPECS/authd.spec index 9c2f896..51271a5 100644 --- a/SPECS/authd.spec +++ b/SPECS/authd.spec @@ -1,7 +1,7 @@ Summary: A RFC 1413 ident protocol daemon Name: authd Version: 1.4.3 -Release: 41%{?dist} +Release: 42%{?dist} License: GPLv2+ Group: System Environment/Daemons URL: https://fedorahosted.org/authd/ @@ -19,6 +19,7 @@ Patch4: authd-1.4.3-longopt-identifier.patch Patch5: authd-1.4.3-jiffies64.patch Patch6: authd-1.4.3-valist.patch Patch7: authd-1.4.3-license.patch +Patch8: authd-1.4.3-relro.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: openssl-devel gettext help2man systemd-units Requires(post): systemd-units @@ -43,9 +44,10 @@ of pidentd. %patch7 -p1 -b .license sed -i -e "s|/etc|%{_sysconfdir}|" config.h sed -i -e "/^CFLAGS=.*$/d" GNUmakefile +%patch8 -p1 -b .relro %build -CFLAGS="$RPM_OPT_FLAGS -std=c99 -DNDEBUG" make prefix=%{_prefix} +CFLAGS="$RPM_OPT_FLAGS -std=c99 -DNDEBUG -fPIE" make prefix=%{_prefix} %install rm -rf $RPM_BUILD_ROOT @@ -90,6 +92,10 @@ chmod o-rw %{_sysconfdir}/ident.key %{_unitdir}/* %changelog +* Mon Jul 27 2015 Tomas Smetana - 1.4.3-42 +- Build with PIE and full RELRO + Resolves: #1092568 + * Tue Mar 11 2014 Jan Synáček - 1.4.3-41 - Use CFLAGS correctly Resolves: #1070785