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

Include audit_rules_mac_modification_usr_share rule for RHEL CIS #10231

Merged

Conversation

marcusburghardt
Copy link
Member

Description:

The audit_rules_mac_modification_usr_share complements the 4.1.6 CIS requirement for RHEL7 and 4.1.3.14 CIS requirement for RHEL8 and RHEL9.

Rationale:

Better CIS coverage for RHEL products.

The audit_rules_mac_modification_usr_share complements the 4.1.6
CIS requirement for RHEL7 and 4.1.3.14 CIS requirement for RHEL8 and
RHEL9.
The information was based on the existing audit_rules_mac_modification
rule, which is similar except to the directory used in the audit rule.
No changes were made in the content or logic. Only the long lines were
split to fit 99 characters length.
@marcusburghardt marcusburghardt added RHEL Red Hat Enterprise Linux product related. CIS CIS Benchmark related. labels Feb 20, 2023
@marcusburghardt marcusburghardt added this to the 0.1.67 milestone Feb 20, 2023
@marcusburghardt marcusburghardt requested a review from a team as a code owner February 20, 2023 10:18
@github-actions
Copy link

Start a new ephemeral environment with changes proposed in this pull request:

rhel8 (from CTF) Environment (using Fedora as testing environment)
Open in Gitpod

Fedora Testing Environment
Open in Gitpod

Oracle Linux 8 Environment
Open in Gitpod

@github-actions
Copy link

This datastream diff is auto generated by the check Compare DS/Generate Diff

Click here to see the full diff
New content has different text for rule 'xccdf_org.ssgproject.content_rule_audit_rules_mac_modification_usr_share'.
--- xccdf_org.ssgproject.content_rule_audit_rules_mac_modification_usr_share
+++ xccdf_org.ssgproject.content_rule_audit_rules_mac_modification_usr_share
@@ -310,7 +310,13 @@
 [reference]:
 Req-10.5.5
 
+[reference]:
+4.1.3.14
+
 [rationale]:
 The system's mandatory access policy (SELinux) should not be
 arbitrarily changed by anything other than administrator action. All changes to
 MAC policy should be audited.
+
+[ident]:
+CCE-86342-3

New datastream adds bash remediation for rule 'xccdf_org.ssgproject.content_rule_audit_rules_mac_modification_usr_share'.
New datastream adds ansible remediation for rule 'xccdf_org.ssgproject.content_rule_audit_rules_mac_modification_usr_share'.

@codeclimate
Copy link

codeclimate bot commented Feb 20, 2023

Code Climate has analyzed commit daef0c9 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 51.7% (0.0% change).

View more on Code Climate.

@jan-cerny jan-cerny self-assigned this Feb 20, 2023
@jan-cerny jan-cerny merged commit 7b97394 into ComplianceAsCode:master Feb 20, 2023
36 checks passed
@marcusburghardt marcusburghardt deleted the mac_modification_usr_share branch February 21, 2023 08:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CIS CIS Benchmark related. RHEL Red Hat Enterprise Linux product related.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CIS 4.1.7 Ensure events that modify the system's Mandatory Access Controls are collected (Scored)
2 participants