Skip to content
Open
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
@@ -1,4 +1,4 @@
# platform = multi_platform_rhel,multi_platform_fedora,multi_platform_ol,multi_platform_rhv,multi_platform_almalinux
# platform = multi_platform_almalinux,multi_platform_fedora,multi_platform_ol,multi_platform_rhel,multi_platform_rhv,multi_platform_sle
# reboot = false
# strategy = restrict
# complexity = low
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ identifiers:
cce@rhel8: CCE-80941-8
cce@rhel9: CCE-86574-1
cce@rhel10: CCE-90052-2
cce@sle15: CCE-92693-1
cce@sle16: CCE-96700-0

references:
nist: AU-2(d),AU-12(c),AC-6(9),CM-6(a)
Expand All @@ -39,4 +41,3 @@ ocil: |-
<code>/var/log/audit</code> directory, run the following command:
<pre space="preserve">$ sudo grep "dir=/var/log/audit" /etc/audit/audit.rules</pre>
If the system is configured to audit this activity, it will return a line.

1 change: 0 additions & 1 deletion products/sle15/profiles/pci-dss-4.profile
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ selections:
- '!accounts_password_pam_minlen'
- '!no_password_auth_for_systemaccounts'
- '!file_groupowner_user_cfg'
- '!directory_access_var_log_audit'
- '!ensure_root_password_configured'
- '!gnome_gdm_disable_automatic_login'
- '!accounts_password_pam_pwhistory_remember_password_auth'
Expand Down
8 changes: 8 additions & 0 deletions products/sle16/controls/base_sle16/0500_audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,3 +79,11 @@ controls:
status: automated
rules:
- audit_rules_dac_modification_fchmodat2

- id: SLES-16-16016545
levels:
- pcidss4
title: SLE16 system should audit access to /var/log/audit
status: automated
rules:
- directory_access_var_log_audit
1 change: 1 addition & 0 deletions products/sle16/profiles/base.profile
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ selections:
- grub2_spectre_v2_argument
- grub2_nosmep_argument_absent
- grub2_audit_argument
- directory_access_var_log_audit
6 changes: 5 additions & 1 deletion shared/macros/20-test-scenarios.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@ This macro changes the configuration of the audit service so that it looks like
{{% if product in ["fedora", "ol10", "rhel10"] %}}
sed -i "s%^ExecStart=.*%ExecStart=/sbin/auditctl%" /usr/lib/systemd/system/audit-rules.service
{{% else %}}
sed -i "s%^ExecStartPost=.*%ExecStartPost=-/sbin/auditctl%" /usr/lib/systemd/system/auditd.service
{{% if product == "sle15" %}}
sed -i "s%^#ExecStartPost=.*%ExecStartPost=-/sbin/auditctl%" /usr/lib/systemd/system/auditd.service
{{% else %}}
sed -i "s%^ExecStartPost=.*%ExecStartPost=-/sbin/auditctl%" /usr/lib/systemd/system/auditd.service
{{% endif %}}
{{% endif %}}
{{%- endmacro -%}}

Expand Down
1 change: 0 additions & 1 deletion shared/references/cce-sle15-avail.txt
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,3 @@ CCE-92689-9
CCE-92690-7
CCE-92691-5
CCE-92692-3
CCE-92693-1
1 change: 0 additions & 1 deletion shared/references/cce-sle16-avail.txt
Original file line number Diff line number Diff line change
Expand Up @@ -980,4 +980,3 @@ CCE-96696-0
CCE-96697-8
CCE-96698-6
CCE-96699-4
CCE-96700-0
Loading