grubconfigs: ensure bootuuid.cfg and grubenv with mode 0600#1063
Conversation
There was a problem hiding this comment.
Code Review
This pull request enhances security by ensuring that bootuuid.cfg and grubenv have file permissions set to 0600. The changes involve using a shared constant for the file mode when creating bootuuid.cfg and adding a new function to enforce the permissions on grubenv. The implementation is correct and includes a test to verify the new behavior. I have one suggestion to simplify the code in the new function.
23632f7 to
1880664
Compare
cgwalters
left a comment
There was a problem hiding this comment.
Looks sane, but we probably want to also apply this fixup automatically on upgrades?
Good catch, will fix on upgrades later. |
Fixes #1058