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

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