Fix audit access rules in ISM_O#12670
Merged
Merged
Conversation
The rules `audit_access_failed` and `audit_access_success` fail after building and booting a CentOS Stream 9 hardened container image with the `ism_o` profile. The reason is that the remediation fails to create the files required by these rules because the package `audit` that provides the directory `/etc/audit/rules.d` where these files should be created isn't installed by default. The solution is to install the `audit` package as a part of the profile remediation.
|
Code Climate has analyzed commit f428b94 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 60.9% (0.0% change). View more on Code Climate. |
Mab879
approved these changes
Dec 4, 2024
jan-cerny
added a commit
to jan-cerny/scap-security-guide
that referenced
this pull request
Jan 16, 2025
The rules `audit_access_failed` and `audit_access_success` fail in the scan of a RHEL 10 Image Mode system hardened with ISM profiles. The reason is that the profiles don't install the `audit` RPM package required by these rules to work and at the same time the `audit` RPM package isn't part of the rhel10-bootc base image. This is similar to this PR but it fixed only RHEL 9: ComplianceAsCode#12670
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The rules
audit_access_failedandaudit_access_successfail after building and booting a CentOS Stream 9 hardened container image with theism_oprofile. The reason is that the remediation fails to create the files required by these rules because the packageauditthat provides the directory/etc/audit/rules.dwhere these files should be created isn't installed by default. The solution is to install theauditpackage as a part of the profile remediation.