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

Enable correct OVAL criteria for RHEL9/RHEL10 in file_ownership_var_log_audit_stig #12845

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<extend_definition comment="log_file not set in auditd.conf" definition_ref="auditd_conf_log_file_not_set" negate="true" />
<criterion comment="audit log files are root owned" test_ref="test_user_ownership_audit_log_files" />
</criteria>
{{% if product in ["ol8", "rhel8"] %}}
{{% if "ol" in families or "rhel" in product %}}
<criteria operator="AND" comment="log_file not set">
<extend_definition comment="log_file not set in auditd.conf"
definition_ref="auditd_conf_log_file_not_set"/>
Expand All @@ -28,7 +28,7 @@
<filter action="include">state_owner_not_root_var_log_audit</filter>
</unix:file_object>

{{% if product in ["ol8", "rhel8"] %}}
{{% if "ol" in families or "rhel" in product %}}
<unix:file_test check="all" check_existence="none_exist"
comment="var/log/audit/audit.log file uid root"
id="test_user_ownership_audit_default_log_files" version="1">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# platform = multi_platform_ol,multi_platform_rhel
#!/bin/bash

# packages = audit

sed -i "/^\s*log_file.*/d" /etc/audit/auditd.conf
useradd testuser_123
touch "/var/log/audit/audit2.log"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# platform = multi_platform_ol,multi_platform_rhel
#!/bin/bash

# packages = audit

sed -i "/^\s*log_file.*/d" /etc/audit/auditd.conf
useradd testuser_123
touch "/var/log/audit/audit2.log"
Expand Down
Loading