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.
This commit is contained in:
fzielcke 2009-09-10 19:04:43 +00:00
parent 48d9bb0a93
commit 8aa1541a41
2 changed files with 7 additions and 1 deletions

View file

@ -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

View 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