-
Notifications
You must be signed in to change notification settings - Fork 749
Workaround OpenSCAP issue for Image Mode #13645
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
Conversation
Use full path for some commands in /usr/sbin in Bash remediations. This is a workaround for OpenSCAP issue: OpenSCAP/openscap#2242 A proper fix would be in OpenSCAP, but it's less likely to update OpenSCAP in downstream than to update the content. Effectively, this change will fix some rules that fail when building a hardened bootable container image: ComplianceAsCode#13550 ComplianceAsCode#13551 ComplianceAsCode#13552 In future, this problem will be smaller, because starting from Fedora 42, /usr/sbin is a symlink to /usr/bin, see: https://fedoraproject.org/wiki/Changes/Unify_bin_and_sbin
Skipping CI for Draft Pull Request. |
Code Climate has analyzed commit b3a383d and detected 0 issues on this pull request. The test coverage on the diff in this pull request is 100.0% (50% is the threshold). This pull request will bring the total coverage in the repository to 61.9% (0.0% change). View more on Code Climate. |
@jan-cerny: The following test failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
/retest |
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.
LGTM.
The issue ComplianceAsCode/content#13550 is closed. It has been fixed or worked around by ComplianceAsCode/content#13645. As of 2025-07-14, the issue doesn't appear in daily productization. Also, I can't reproduce it locally using autocontest. I used current upstream master as of HEAD f78aeca. In the HTML report, all 3 rules listed in the description are passing. They pass both on RHEL 9 and 10.
The issue ComplianceAsCode/content#13550 is closed. It has been fixed or worked around by ComplianceAsCode/content#13645. As of 2025-07-14, the issue doesn't appear in daily productization. Also, I can't reproduce it locally using autocontest. I used current upstream master as of HEAD f78aeca. In the HTML report, all 3 rules listed in the description are passing. They pass both on RHEL 9 and 10.
Issues ComplianceAsCode/content#13551 and ComplianceAsCode/content#13551 have been closed. They have been fixed or worked around by ComplianceAsCode/content#13645. As of 2025-07-14, these issues don't appear in daily productization. Also, I can't reproduce them locally using autocontest. I used current upstream master as of HEAD f78aeca. In the HTML reports they pass on both RHEL 9 and RHEL 10.
Issues ComplianceAsCode/content#13551 and ComplianceAsCode/content#13551 have been closed. They have been fixed or worked around by ComplianceAsCode/content#13645. As of 2025-07-14, these issues don't appear in daily productization. Also, I can't reproduce them locally using autocontest. I used current upstream master as of HEAD f78aeca. In the HTML reports they pass on both RHEL 9 and RHEL 10.
Use full path for some commands in /usr/sbin in Bash remediations.
This is a workaround for OpenSCAP issue:
OpenSCAP/openscap#2242
A proper fix would be in OpenSCAP, but it's less likely to update OpenSCAP in downstream than to update the content.
Effectively, this change will fix some rules that fail when building a hardened bootable container image:
#13550 #13551 #13552
In future, this problem will be smaller, because starting from Fedora 42, /usr/sbin is a symlink to /usr/bin, see: https://fedoraproject.org/wiki/Changes/Unify_bin_and_sbin