efi-rpm-macros/0002-Makefile-fix-permission-on-boot-efi-EFI.patch

30 lines
847 B
Diff
Raw Normal View History

From 110b9c24200ff90c5d09cc2bf41df728810a0e0e Mon Sep 17 00:00:00 2001
From: Sandro Bonazzola <sbonazzo@redhat.com>
Date: Wed, 3 May 2023 11:20:36 +0200
Subject: [PATCH] Makefile: fix permission on /boot/efi/EFI
Ensure /boot/efi/EFI is created with 0700 mode.
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=2144459
Signed-off-by: Sandro Bonazzola <sbonazzo@redhat.com>
---
Makefile | 1 +
1 file changed, 1 insertion(+)
diff --git a/Makefile b/Makefile
index 7d56eae..37e97a5 100644
--- a/Makefile
+++ b/Makefile
@@ -65,6 +65,7 @@ install : $(TARGETS)
install -d -m 0755 $(DESTDIR)/boot ; \
fi
install -d -m 0700 $(DESTDIR)/$(EFI_ESP_ROOT)
+ install -d -m 0700 $(DESTDIR)/$(EFI_ESP_ROOT)/EFI
install -d -m 0700 $(DESTDIR)/$(EFI_ESP_ROOT)/EFI/BOOT
install -d -m 0700 $(DESTDIR)/$(EFI_ESP_ROOT)/EFI/$(EFI_VENDOR)
--
2.40.1