-
Notifications
You must be signed in to change notification settings - Fork 718
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Reorganize zIPL rules #5888
Reorganize zIPL rules #5888
Conversation
Skipping CI for Draft Pull Request. |
/test all |
e222c63
to
dc415f0
Compare
Instead of having each zIPL argument rule check for BLS compliance, let's split into its own rule.
Automated remediation to remove non-BLS boot entries from /etc/zipl.conf is tricky and can lead to broken entries or removal of all of them.
Instead of having each zIPL argument rule check if zIPL bootmap is up to date, let's split it into its own rule.
These tests mock existence of zIPL files.
dc415f0
to
9370372
Compare
path: /etc/zipl.conf | ||
register: zipl_conf | ||
|
||
# TODO: handle /boot/loader/entries/*.conf |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see an easy way to do this, leaving as a TODO item for the future.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for these changes. Please also modify the files pertaining to "stable profile" tests, currently the test is failing. See comments for questions and suggestions.
I ran all tests manually and they work as expected, except for the wrong path in the bash remediation for zipl_bootmap_is_up_to_date. When I fixed it everything was working.
linux_os/guide/system/bootloader-zipl/zipl_bootmap_is_up_to_date/rule.yml
Show resolved
Hide resolved
linux_os/guide/system/bootloader-zipl/zipl_bootmap_is_up_to_date/bash/shared.sh
Outdated
Show resolved
Hide resolved
linux_os/guide/system/bootloader-zipl/zipl_bls_entries_only/oval/shared.xml
Outdated
Show resolved
Hide resolved
There can be leading spaces before 'image'.
There is no need to perform pattern match, the check just needs to examine /etc/zipl.conf file.
Add RHEL-8 CCE identifiers for: - zipl_bls_entries_only - zipl_bootmap_is_up_to_date
Update the profile reference file.
Note: references to SFRs to be added later. |
The zIPL rules are inherited from OSPP profile
Changes identified: Recommended tests to execute: |
Please update the STIG stable profile as well. |
I actually unselected the zIPL rules from the STIG Profile. |
/retest |
Thank you for the PR, merging! |
Thanks for the reviews, :) |
Description:
Rationale: