0e50f1f
The configuration file can potentially contain sensitive data, ...
0e50f1f
well, passwords are not yet implemented.
0e50f1f
0e50f1f
Lubomir Rintel <lkundrak@v3.sk>
0e50f1f
0e50f1f
diff -urp grub2.orig/util/update-grub.in grub2/util/update-grub.in
0e50f1f
--- grub2.orig/util/update-grub.in	2008-08-07 21:58:17.000000000 +0200
0e50f1f
+++ grub2/util/update-grub.in	2008-08-07 22:01:44.000000000 +0200
0e50f1f
@@ -170,7 +170,7 @@ exec > ${grub_cfg}.new
0e50f1f
 
0e50f1f
 # Allow this to fail, since /boot/grub/ might need to be fatfs to support some
0e50f1f
 # firmware implementations (e.g. OFW or EFI).
0e50f1f
-chmod 444 ${grub_cfg}.new || true
0e50f1f
+chmod 600 ${grub_cfg}.new || true
0e50f1f
 
0e50f1f
 echo "Updating ${grub_cfg} ..." >&2
0e50f1f