-
Notifications
You must be signed in to change notification settings - Fork 698
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
Add package prelink removed #10062
Add package prelink removed #10062
Conversation
Added custom remediations due since we need to restore binaries before removing the package.
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.
The automatus CI fail is caused by the fact that this rule has prodtype: rhel7
therefore the rule is RHEL 7 only and the rule doesn't exist on products where automatus runs.
linux_os/guide/system/software/integrity/package_prelink_removed/ansible/shared.yml
Show resolved
Hide resolved
Code Climate has analyzed commit 714076b 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 49.8% (0.0% change). View more on Code Climate. |
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.
The automatus CI fail is caused by the fact that this rule has prodtype: rhel7 therefore the rule is RHEL 7 only and the rule doesn't exist on products where automatus runs.
[jcerny@thinkpad scap-security-guide{pr/10062}]$ python3 tests/automatus.py rule --libvirt qemu:///system ssgts_rhel7 package_prelink_removed
Setting console output to log level INFO
INFO - The base image option has not been specified, choosing libvirt-based test environment.
INFO - Logging into /home/jcerny/work/git/scap-security-guide/logs/rule-custom-2023-01-17-0935/test_suite.log
INFO - xccdf_org.ssgproject.content_rule_package_prelink_removed
INFO - Script package-removed.pass.sh using profile (all) OK
INFO - Script package-installed-removed.pass.sh using profile (all) OK
INFO - Script package-installed.fail.sh using profile (all) OK
[jcerny@thinkpad scap-security-guide{pr/10062}]$ python3 tests/automatus.py rule --libvirt qemu:///system ssgts_rhel7 --remediate-using ansible package_prelink_removed
Setting console output to log level INFO
INFO - The base image option has not been specified, choosing libvirt-based test environment.
INFO - Logging into /home/jcerny/work/git/scap-security-guide/logs/rule-custom-2023-01-17-0938/test_suite.log
INFO - xccdf_org.ssgproject.content_rule_package_prelink_removed
INFO - Script package-installed.fail.sh using profile (all) OK
INFO - Script package-installed-removed.pass.sh using profile (all) OK
INFO - Script package-removed.pass.sh using profile (all) OK
Description:
Rationale:
Increase coverage for RHEL 7 CIS.