diff --git a/rp-pppoe-pie.patch b/rp-pppoe-pie.patch new file mode 100644 index 0000000..0a59e09 --- /dev/null +++ b/rp-pppoe-pie.patch @@ -0,0 +1,15 @@ +--- gui/Makefile.in.orig ++++ gui/Makefile.in +@@ -37,10 +37,10 @@ all: pppoe-wrapper + @echo "Type 'make install' as root to install the software." + + pppoe-wrapper: wrapper.o +- @CC@ -o pppoe-wrapper wrapper.o ++ @CC@ -pie -Wl,-z,relro,-z,now -fwhole-program -o pppoe-wrapper wrapper.o + + wrapper.o: wrapper.c +- @CC@ $(CFLAGS) -c -o wrapper.o wrapper.c ++ @CC@ -Wl,-z,relro,-z,now -fpie -fPIE -fwhole-program $(CFLAGS) -c -o wrapper.o wrapper.c + + install: all + -mkdir -p $(DESTDIR)$(sbindir) diff --git a/rp-pppoe.changes b/rp-pppoe.changes index 581a4c9..47907fd 100644 --- a/rp-pppoe.changes +++ b/rp-pppoe.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Jan 24 00:48:39 UTC 2012 - crrodriguez@opensuse.org + +- build pppoe-wrapper with PIE and full RELRO + ------------------------------------------------------------------- Tue Nov 3 19:09:43 UTC 2009 - coolo@novell.com diff --git a/rp-pppoe.spec b/rp-pppoe.spec index 91857bb..31d73ca 100644 --- a/rp-pppoe.spec +++ b/rp-pppoe.spec @@ -1,7 +1,7 @@ # -# spec file for package rp-pppoe (Version 3.10) +# spec file for package rp-pppoe # -# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -38,6 +38,7 @@ Patch6: resolve-conf.diff Patch8: strip.diff Patch10: %{name}-3.10-init.patch Patch11: %{name}-3.10-config.patch +Patch12: rp-pppoe-pie.patch Requires: ppp >= 2.3.7 BuildRoot: %{_tmppath}/%{name}-%{version}-build PreReq: %insserv_prereq %fillup_prereq @@ -67,6 +68,7 @@ Authors: %patch8 %patch10 -p1 %patch11 -p1 +%patch12 #---------------------------------------------------------------------------------- %build