Blame SOURCES/pam-1.1.8-full-relro.patch

5c721c
diff -up Linux-PAM-1.1.8/modules/pam_console/Makefile.am.relro Linux-PAM-1.1.8/modules/pam_console/Makefile.am
5c721c
--- Linux-PAM-1.1.8/modules/pam_console/Makefile.am.relro	2014-08-13 16:02:49.000000000 +0200
5c721c
+++ Linux-PAM-1.1.8/modules/pam_console/Makefile.am	2014-09-10 17:14:33.245554314 +0200
5c721c
@@ -33,6 +33,8 @@ pam_console_la_LIBADD = -L$(top_builddir
5c721c
 
5c721c
 pam_console_apply_LDADD = -L$(top_builddir)/libpam -lpam
5c721c
 
5c721c
+pam_console_apply_LDFLAGS = -Wl,-z,now @PIE_LDFLAGS@
5c721c
+
5c721c
 securelib_LTLIBRARIES = pam_console.la
5c721c
 sbin_PROGRAMS = pam_console_apply
5c721c
 
5c721c
@@ -47,7 +49,7 @@ pam_console_apply_SOURCES = pam_console_
5c721c
 			 configfile.c configfile.h hashtable.c hashtable.h hashtable_private.h
5c721c
 
5c721c
 pam_console_la_CFLAGS = $(AM_CFLAGS)
5c721c
-pam_console_apply_CFLAGS = $(AM_CFLAGS)
5c721c
+pam_console_apply_CFLAGS = $(AM_CFLAGS) @PIE_CFLAGS@
5c721c
 
5c721c
 configfile.tab.c: configfile.y
5c721c
 	$(YACC) $(BISON_OPTS) -o $@ -p _pc_yy $<
5c721c
diff -up Linux-PAM-1.1.8/modules/pam_filter/upperLOWER/Makefile.am.relro Linux-PAM-1.1.8/modules/pam_filter/upperLOWER/Makefile.am
5c721c
--- Linux-PAM-1.1.8/modules/pam_filter/upperLOWER/Makefile.am.relro	2014-09-10 17:17:20.273401344 +0200
5c721c
+++ Linux-PAM-1.1.8/modules/pam_filter/upperLOWER/Makefile.am	2014-09-10 17:17:07.857115369 +0200
5c721c
@@ -9,7 +9,7 @@ securelibfilterdir = $(SECUREDIR)/pam_fi
5c721c
 
5c721c
 AM_CFLAGS = -I$(top_srcdir)/libpam/include -I$(top_srcdir)/libpamc/include \
5c721c
 	-I$(srcdir)/.. @PIE_CFLAGS@
5c721c
-AM_LDFLAGS = @PIE_LDFLAGS@
5c721c
+AM_LDFLAGS = -Wl,-z,now @PIE_LDFLAGS@
5c721c
 LDADD = $(top_builddir)/libpam/libpam.la
5c721c
 
5c721c
 securelibfilter_PROGRAMS = upperLOWER
5c721c
diff -up Linux-PAM-1.1.8/modules/pam_mkhomedir/Makefile.am.relro Linux-PAM-1.1.8/modules/pam_mkhomedir/Makefile.am
5c721c
--- Linux-PAM-1.1.8/modules/pam_mkhomedir/Makefile.am.relro	2013-06-18 16:11:21.000000000 +0200
5c721c
+++ Linux-PAM-1.1.8/modules/pam_mkhomedir/Makefile.am	2014-09-10 17:18:42.922304935 +0200
5c721c
@@ -30,6 +30,8 @@ endif
5c721c
 
5c721c
 sbin_PROGRAMS = mkhomedir_helper
5c721c
 mkhomedir_helper_SOURCES = mkhomedir_helper.c
5c721c
+mkhomedir_helper_CFLAGS = $(AM_CFLAGS) @PIE_CFLAGS@
5c721c
+mkhomedir_helper_LDFLAGS = -Wl,-z,now @PIE_LDFLAGS@
5c721c
 mkhomedir_helper_LDADD = $(top_builddir)/libpam/libpam.la
5c721c
 
5c721c
 if ENABLE_REGENERATE_MAN
5c721c
diff -up Linux-PAM-1.1.8/modules/pam_tally2/Makefile.am.relro Linux-PAM-1.1.8/modules/pam_tally2/Makefile.am
5c721c
--- Linux-PAM-1.1.8/modules/pam_tally2/Makefile.am.relro	2013-06-18 16:11:21.000000000 +0200
5c721c
+++ Linux-PAM-1.1.8/modules/pam_tally2/Makefile.am	2014-09-10 17:22:04.339944040 +0200
5c721c
@@ -26,6 +26,8 @@ if HAVE_VERSIONING
5c721c
   pam_tally2_la_LDFLAGS += -Wl,--version-script=$(srcdir)/../modules.map
5c721c
 endif
5c721c
 
5c721c
+pam_tally2_CFLAGS = $(AM_CFLAGS) @PIE_CFLAGS@
5c721c
+pam_tally2_LDFLAGS = -Wl,-z,now @PIE_LDFLAGS@
5c721c
 pam_tally2_LDADD = $(top_builddir)/libpam/libpam.la $(LIBAUDIT)
5c721c
 
5c721c
 securelib_LTLIBRARIES = pam_tally2.la
5c721c
diff -up Linux-PAM-1.1.8/modules/pam_timestamp/Makefile.am.relro Linux-PAM-1.1.8/modules/pam_timestamp/Makefile.am
5c721c
--- Linux-PAM-1.1.8/modules/pam_timestamp/Makefile.am.relro	2013-06-18 16:11:21.000000000 +0200
5c721c
+++ Linux-PAM-1.1.8/modules/pam_timestamp/Makefile.am	2014-08-13 16:02:49.906688139 +0200
5c721c
@@ -36,7 +36,7 @@ pam_timestamp_la_CFLAGS = $(AM_CFLAGS)
5c721c
 pam_timestamp_check_SOURCES = pam_timestamp_check.c
5c721c
 pam_timestamp_check_CFLAGS = $(AM_CFLAGS) @PIE_CFLAGS@
5c721c
 pam_timestamp_check_LDADD = $(top_builddir)/libpam/libpam.la
5c721c
-pam_timestamp_check_LDFLAGS = @PIE_LDFLAGS@
5c721c
+pam_timestamp_check_LDFLAGS = -Wl,-z,now @PIE_LDFLAGS@
5c721c
 
5c721c
 hmacfile_SOURCES = hmacfile.c hmacsha1.c sha1.c
5c721c
 hmacfile_LDADD = $(top_builddir)/libpam/libpam.la
5c721c
diff -up Linux-PAM-1.1.8/modules/pam_unix/Makefile.am.relro Linux-PAM-1.1.8/modules/pam_unix/Makefile.am
5c721c
--- Linux-PAM-1.1.8/modules/pam_unix/Makefile.am.relro	2013-06-18 16:11:21.000000000 +0200
5c721c
+++ Linux-PAM-1.1.8/modules/pam_unix/Makefile.am	2014-08-13 16:02:49.906688139 +0200
5c721c
@@ -55,13 +55,13 @@ bigcrypt_LDADD = @LIBCRYPT@
5c721c
 unix_chkpwd_SOURCES = unix_chkpwd.c md5_good.c md5_broken.c bigcrypt.c \
5c721c
 	passverify.c
5c721c
 unix_chkpwd_CFLAGS = $(AM_CFLAGS) @PIE_CFLAGS@ -DHELPER_COMPILE=\"unix_chkpwd\"
5c721c
-unix_chkpwd_LDFLAGS = @PIE_LDFLAGS@
5c721c
+unix_chkpwd_LDFLAGS = -Wl,-z,now @PIE_LDFLAGS@
5c721c
 unix_chkpwd_LDADD = @LIBCRYPT@ @LIBSELINUX@ @LIBAUDIT@
5c721c
 
5c721c
 unix_update_SOURCES = unix_update.c md5_good.c md5_broken.c bigcrypt.c \
5c721c
 	passverify.c
5c721c
 unix_update_CFLAGS = $(AM_CFLAGS) @PIE_CFLAGS@ -DHELPER_COMPILE=\"unix_update\"
5c721c
-unix_update_LDFLAGS = @PIE_LDFLAGS@
5c721c
+unix_update_LDFLAGS = -Wl,-z,now @PIE_LDFLAGS@
5c721c
 unix_update_LDADD = @LIBCRYPT@ @LIBSELINUX@
5c721c
 
5c721c
 if ENABLE_REGENERATE_MAN