]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
2009-09-10 Felix Zielcke <fzielcke@z-51.de>
authorfzielcke <fzielcke@localhost>
Thu, 10 Sep 2009 19:04:43 +0000 (19:04 +0000)
committerfzielcke <fzielcke@localhost>
Thu, 10 Sep 2009 19:04:43 +0000 (19:04 +0000)
* util/grub-mkconfig.in: Make the created config mode 400 and
print a warning if it fails.

ChangeLog
util/grub-mkconfig.in

index 63924d91790e7f13ff1179f9eb42318233121541..df1ac0733be9679bc12147782dbc42eea48cef89 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-09-10  Felix Zielcke  <fzielcke@z-51.de>
+
+       * util/grub-mkconfig.in: Make the created config mode 400 and
+       print a warning if it fails.
+
 2009-09-10  Robert Millan  <rmh.grub@aybabtu.com>
 
        * util/grub.d/40_custom.in: Ask user to type custom entries below
index d9640e91095d1c1486f0302a0295c38589efd4ac..a8c2675181b74cd2b1e8776c7a66720fa7955e0f 100644 (file)
@@ -232,7 +232,8 @@ if test "x${grub_cfg}" != "x"; then
 
   # Allow this to fail, since /boot/grub/ might need to be fatfs to support some
   # firmware implementations (e.g. OFW or EFI).
-  chmod 444 ${grub_cfg}.new || true
+  chmod 400 ${grub_cfg}.new || grub_warn "Could not make ${grub_cfg}.new readable by only root.\
+  This means that if the generated config contains a password it is readable by everyone"
 fi
 echo "Generating grub.cfg ..." >&2