mirror of
https://src.fedoraproject.org/rpms/grub2.git
synced 2024-11-24 06:22:43 +00:00
a137559e71
Resolves: #2281464 Signed-off-by: Leo Sandoval <lsandova@redhat.com>
30 lines
1 KiB
Diff
30 lines
1 KiB
Diff
From 4062ab33c8cd86ac15cefe1b4f2f422b28467f54 Mon Sep 17 00:00:00 2001
|
|
From: Leo Sandoval <lsandova@redhat.com>
|
|
Date: Fri, 24 May 2024 18:22:17 -0600
|
|
Subject: [PATCH] grub-mkconfig.in: turn off executable owner bit
|
|
|
|
Stricker permissions are required on the grub.cfg file, resulting in
|
|
at most 0600 owner's file permissions. This resolves conflicting
|
|
requirement permissions on grub2-pc package's grub2.cfg file.
|
|
|
|
Signed-off-by: Leo Sandoval <lsandova@redhat.com>
|
|
---
|
|
util/grub-mkconfig.in | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/util/grub-mkconfig.in b/util/grub-mkconfig.in
|
|
index 520a672cd..fb382b648 100644
|
|
--- a/util/grub-mkconfig.in
|
|
+++ b/util/grub-mkconfig.in
|
|
@@ -311,7 +311,7 @@ and /etc/grub.d/* files or please file a bug report with
|
|
exit 1
|
|
else
|
|
# none of the children aborted with error, install the new grub.cfg
|
|
- oldumask=$(umask); umask 077
|
|
+ oldumask=$(umask); umask 177
|
|
cat ${grub_cfg}.new > ${grub_cfg}
|
|
umask $oldumask
|
|
rm -f ${grub_cfg}.new
|
|
--
|
|
2.44.0
|
|
|