From 794af19021640f0a0a6e8fd3d8b7be813c8387d4 Mon Sep 17 00:00:00 2001 From: Qiumiao Zhang Date: Mon, 17 Jul 2023 16:17:40 +0800 Subject: [PATCH] Override the linker and force noexecstack stacks Signed-off-by: Qiumiao Zhang --- grub.macros | 2 +- grub2.spec | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/grub.macros b/grub.macros index f7a1b9b..d5da50a 100644 --- a/grub.macros +++ b/grub.macros @@ -14,7 +14,7 @@ %global ccpath %{__cc} %endif -%global cc_equals "CC=%{ccpath} -fPIE" +%global cc_equals "CC=%{ccpath} -fPIE -Wl,-z,noexecstack" %global cflags_sed \\\ sed \\\ diff --git a/grub2.spec b/grub2.spec index de88415..4fbdde0 100644 --- a/grub2.spec +++ b/grub2.spec @@ -14,7 +14,7 @@ Name: grub2 Epoch: 1 Version: 2.06 -Release: 31 +Release: 32 Summary: Bootloader with support for Linux, Multiboot and more License: GPLv3+ URL: http://www.gnu.org/software/grub/ @@ -440,6 +440,12 @@ fi %{_datadir}/man/man* %changelog +* Mon Jul 17 2023 zhangqiumiao - 1:2.06-32 +- Type:bugfix +- CVE:NA +- SUG:NA +- DESC:Override the linker and force noexecstack stacks + * Mon Jul 3 2023 zhangqiumiao - 1:2.06-31 - Type:bugfix - CVE:NA -- Gitee