Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Correct default value for ubtu22cis_grub_file: /boot/grub/grub.cfg #117

Conversation

raabf
Copy link
Contributor

@raabf raabf commented Sep 28, 2023

Overall Review of Changes:

CIS's assessment for rule 1.4.2 Ensure permissions on bootloader config are configured uses wrong /boot/grub/grub.cfg.

Issue Fixes:
N/A

Enhancements:
I think the current value defined within the variable ubtu22cis_grub_file(respectively /etc/default/grub.cfg) is wrong, as it is a mix between:

DEFAULT FILE: /etc/default/grub
THE AUTO-GENERATED GRUB FILE: /boot/grub/grub.cfg

So the current value /boot/grub/grub.cfg is a non-existant file, but CIS rule means /boot/grub/grub.cfg.

Thanks to @ipruteanu-sie for finding the issue ;-)

How has this been tested?:

Executing the task, look at the result, and CIS-CAT Scanner succeeds.

CIS's assessment for rule 1.4.2 Ensure permissions on bootloader config are configured uses `/boot/grub/grub.cfg`.
I think the current value defined within the variable ubtu22cis_grub_file(respectively /etc/default/grub.cfg) is wrong, as it is a mix between:

DEFAULT FILE: /etc/default/grub
THE AUTO-GENERATED GRUB FILE: /boot/grub/grub.cfg

So the current value `/boot/grub/grub.cfg` is a non-existant file, but
CIS rule means `/boot/grub/grub.cfg`.

Signed-off-by: Fabian Raab <[email protected]>
@raabf raabf force-pushed the siemens/feat/r1_4_2_ubtu22cis_grub_file branch from f2d446a to 81221ae Compare September 28, 2023 18:18
@uk-bolly
Copy link
Member

hi @raabf

Thank you for this PR, I believe this has already been addressed by #116.

many thanks

uk-bolly

@raabf
Copy link
Contributor Author

raabf commented Sep 29, 2023

Ah, you are correct! Then I have overseen!

@raabf raabf closed this Sep 29, 2023
@raabf raabf deleted the siemens/feat/r1_4_2_ubtu22cis_grub_file branch September 29, 2023 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants