Skip to content

Commit

Permalink
Adjust OVAL for directory_permissions_var_log_audit
Browse files Browse the repository at this point in the history
  • Loading branch information
Mab879 committed Nov 22, 2024
1 parent 4513597 commit b277280
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<definition class="compliance" id="directory_permissions_var_log_audit" version="1">
{{{ oval_metadata("Checks for correct permissions for audit logs.") }}}
<criteria operator="OR">
{{% if product not in ["ol8", "rhel8"] %}}
{{% if product not in ["ol8"] and 'rhel' not in product %}}
<criteria operator="AND" comment="log_file set">
<extend_definition comment="log_file set in auditd.conf" definition_ref="auditd_conf_log_file_not_set" negate="true" />
<criteria operator="AND" comment="log_group in auditd.conf is not root">
Expand All @@ -16,7 +16,7 @@
<criteria operator="AND" comment="log_group in auditd.conf is not root">
<extend_definition comment="log_group in auditd.conf is not root"
definition_ref="auditd_conf_log_group_not_root" />
<criterion test_ref="test_dir_permissions_var_log_audit-non_root" negate="true" />
<criterion test_ref="test_dir_permissions_var_log_audit-non_root" negate="true" />
</criteria>
{{% else %}}
<criteria operator="AND" comment="log_file set">
Expand Down

0 comments on commit b277280

Please sign in to comment.