From 49c06ae7c43851322de044ca8cccb039b2cdab63 Mon Sep 17 00:00:00 2001 From: jiangdongxu Date: Thu, 18 Apr 2024 17:16:33 +0800 Subject: [PATCH] edk2.spec: make EFI_LOADER_DATA executable again As commit(2997ae387397) make EFI_LOADER_DATA non-executable, old operation system using old GRUB cannot boot. As we need to support these operation systems, make EFI_LOADER_DATA executable again. Signed-off-by: Jiabo Feng (cherry picked from commit 6ea7aa2a95fb32d6c091084a65b322a49e1f5b1d) --- edk2.spec | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/edk2.spec b/edk2.spec index 5ae8cc6..444e790 100644 --- a/edk2.spec +++ b/edk2.spec @@ -7,7 +7,7 @@ Name: edk2 Version: %{stable_date} -Release: 8 +Release: 9 Summary: EFI Development Kit II License: BSD-2-Clause-Patent and OpenSSL and MIT URL: https://github.com/tianocore/edk2 @@ -152,6 +152,8 @@ make -C BaseTools %{?_smp_mflags} EXTRA_OPTFLAGS="%{optflags}" EXTRA_LDFLAGS="%{ COMMON_FLAGS="-D NETWORK_IP6_ENABLE" %ifarch aarch64 BUILD_OPTION="$BUILD_OPTION -a AARCH64 -p ArmVirtPkg/ArmVirtQemu.dsc --cmd-len=65536 $COMMON_FLAGS" + # In order to be compatible with old os, make EFI_LOADER_DATA executable again. + BUILD_OPTION="$BUILD_OPTION --pcd PcdDxeNxMemoryProtectionPolicy=0xC000000000007FD1" %endif %ifarch x86_64 @@ -312,6 +314,9 @@ chmod +x %{buildroot}%{_bindir}/Rsa2048Sha256GenerateKeys %endif %changelog +* Wed Aug 14 2024 Jiabo Feng - 202308-9 +- make EFI_LOADER_DATA executable again. + * Thu Jul 11 2024 shenyage - 202308-8 - fix CVE-2024-5535 -- Gitee