From 433bab66ec4f89a897566add49cac6930f219157 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Men=C5=A1=C3=ADk?= Date: Mon, 27 Jan 2025 13:57:02 +0100 Subject: [PATCH] Fix PIE patching from Fedora Seems broken since last rebase build. Related: RHEL-76331 --- bind-9.5-PIE.patch | 27 +++++++++++++++++++-------- 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/bind-9.5-PIE.patch b/bind-9.5-PIE.patch index 1420cf3..9744f69 100644 --- a/bind-9.5-PIE.patch +++ b/bind-9.5-PIE.patch @@ -1,17 +1,28 @@ +From 13348a5fc64387bf53ef450688e181100d0ceddb Mon Sep 17 00:00:00 2001 +From: Petr Mensik +Date: Thu, 12 Dec 2024 15:56:13 +0100 +Subject: [PATCH] Harden named service build flags + +--- + bin/named/Makefile.am | 5 ++++- + 1 file changed, 4 insertions(+), 1 deletion(-) + diff --git a/bin/named/Makefile.am b/bin/named/Makefile.am -index 57a023b..085f2f7 100644 +index 57a023b..b832e9c 100644 --- a/bin/named/Makefile.am +++ b/bin/named/Makefile.am -@@ -32,9 +32,12 @@ AM_CPPFLAGS += \ - endif HAVE_LIBXML2 +@@ -33,7 +33,10 @@ endif HAVE_LIBXML2 AM_CPPFLAGS += \ -+ -fpie \ -DNAMED_LOCALSTATEDIR=\"${localstatedir}\" \ - -DNAMED_SYSCONFDIR=\"${sysconfdir}\" - -+AM_LDFLAGS += -pie -Wl,-z,relro,-z,now,-z,nodlopen,-z,noexecstack +- -DNAMED_SYSCONFDIR=\"${sysconfdir}\" ++ -DNAMED_SYSCONFDIR=\"${sysconfdir}\" \ ++ -fpie + ++AM_LDFLAGS += -pie -Wl,-z,relro,-z,now,-z,nodlopen,-z,noexecstack + sbin_PROGRAMS = named - nodist_named_SOURCES = xsl.c +-- +2.47.1 +