From 504ecff2edd84132223d4116a78453c2dce8b368 Mon Sep 17 00:00:00 2001 From: Javier Martinez Canillas Date: Tue, 29 Jun 2021 16:07:43 +0200 Subject: [PATCH] grub.macros: Use consistent file mode for legacy and EFI Currently the permissions are inconsistent for grub2-pc and grub2-efi: $ rpm -qlvf --filesbypkg /boot/grub2/grub.cfg ... grub2-efi-x64 /boot/grub2/grub.cfg -rwx------ 1 root root grub2-pc /boot/grub2/grub.cfg -rw-r--r-- 1 root root Resolves: rhbz#1965794 Signed-off-by: Javier Martinez Canillas --- grub.macros | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/grub.macros b/grub.macros index d35c4e7..dee5db6 100644 --- a/grub.macros +++ b/grub.macros @@ -608,7 +608,7 @@ ln -s ../boot/%{name}/grub.cfg \\\ %define define_efi_variant_files() \ %{expand:%%files %{1}} \ -%defattr(0700,root,root,-) \ +%defattr(-,root,root,-) \ %config(noreplace) %{_sysconfdir}/%{name}.cfg \ %config(noreplace) %{_sysconfdir}/%{name}-efi.cfg \ %attr(0700,root,root)%{efi_esp_dir}/%{2} \ @@ -635,7 +635,7 @@ ln -s ../boot/%{name}/grub.cfg \\\ %endif} \ \ %{expand:%%files %{1}-cdboot} \ -%defattr(0700,root,root,-) \ +%defattr(-,root,root,-) \ %attr(0700,root,root)%{efi_esp_dir}/%{3} \ %attr(0700,root,root)/boot/%{name}/fonts \ %{nil}