Skip to content

Commit

Permalink
Update SLES-15-030680 check and fix
Browse files Browse the repository at this point in the history
  • Loading branch information
svet-se committed Nov 4, 2024
1 parent 33d220b commit 6b97cb2
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# platform = Oracle Linux 7,Red Hat Virtualization 4,multi_platform_sle,multi_platform_slmicro
# platform = Oracle Linux 7,Red Hat Virtualization 4,SUSE Linux Enterprise 12,multi_platform_slmicro
# reboot = false
# complexity = low
# disruption = low
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# platform = multi_platform_all

AUDISP_REMOTE_CONFIG="{{{ audisp_conf_path }}}/audisp-remote.conf"
{{% if product in ["rhel8", "fedora", "ol8", "rhv4"] %}}
{{% if product in ["rhel8", "fedora", "ol8", "rhv4", "sle15"] %}}
option="^transport"
value="KRB5"
{{% else %}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<def-group>
<definition class="compliance" id="auditd_audispd_encrypt_sent_records" version="1">
{{% if product in ["rhel8", "fedora", "ol8", "rhv4"] %}}
{{% if product in ["rhel8", "fedora", "ol8", "rhv4", "sle15"] %}}
{{{ oval_metadata("transport setting in " + audisp_config_file_path + " is set to 'KRB5'") }}}
{{% else %}}
{{{ oval_metadata("enable_krb5 setting in " + audisp_config_file_path + " is set to 'yes'") }}}
Expand All @@ -22,7 +22,7 @@
<ind:filepath>{{{ audisp_config_file_path }}}</ind:filepath>
<!-- Allow only space (exactly) as delimiter -->
<!-- Require at least one space before and after the equal sign -->
{{% if product in ["rhel8", "fedora", "ol8", "rhv4"] %}}
{{% if product in ["rhel8", "fedora", "ol8", "rhv4", "sle15"] %}}
<ind:pattern operation="pattern match">^[ ]*transport[ ]+=[ ]+KRB5[ ]*$</ind:pattern>
{{% else %}}
<ind:pattern operation="pattern match">^[ ]*enable_krb5[ ]+=[ ]+yes[ ]*$</ind:pattern>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ title: 'Encrypt Audit Records Sent With audispd Plugin'
description: |-
Configure the operating system to encrypt the transfer of off-loaded audit
records onto a different system or media from the system being audited.
{{% if product in ["rhel8", "fedora", "ol8", "rhv4"] %}}
{{% if product in ["rhel8", "fedora", "ol8", "rhv4", "sle15"] %}}
Set the <tt>transport</tt> option in <pre>{{{ audisp_conf_path }}}/audisp-remote.conf</pre>
to <tt>KRB5</tt>.
{{% else %}}
Expand Down Expand Up @@ -43,7 +43,7 @@ ocil_clause: 'audispd is not encrypting audit records when sent over the network
ocil: |-
To verify the audispd plugin encrypts audit records off-loaded onto a different
system or media from the system being audited, run the following command:
{{% if product in ["rhel8", "fedora", "ol8", "rhv4"] %}}
{{% if product in ["rhel8", "fedora", "ol8", "rhv4", "sle15"] %}}
<pre>$ sudo grep -i transport {{{ audisp_conf_path }}}/audisp-remote.conf</pre>
The output should return the following:
<pre>transport = KRB5</pre>
Expand All @@ -55,7 +55,7 @@ ocil: |-

fixtext: |-
Configure {{{ full_name }}} to encrypt audit records sent with audispd plugin.
{{% if product in ["fedora", "ol8", "ol9", "rhv4"] or "rhel" in product %}}
{{% if product in ["fedora", "ol8", "ol9", "rhv4", "sle15"] or "rhel" in product %}}
Set the "transport" option in "{{{ audisp_conf_path }}}/audisp-remote.conf" to "KRB5".
{{% else %}}
Uncomment the "enable_krb5" option in "{{{ audisp_conf_path }}}/audisp-remote.conf",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
# packages = audit
# platform = Red Hat Enterprise Linux 8,multi_platform_fedora
# platform = Red Hat Enterprise Linux 8,multi_platform_fedora,SUSE Linux Enterprise 15

. $SHARED/auditd_utils.sh
prepare_auditd_test_enviroment
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
# packages = audit
# platform = Red Hat Enterprise Linux 8,multi_platform_fedora
# platform = Red Hat Enterprise Linux 8,multi_platform_fedora,SUSE Linux Enterprise 15

. $SHARED/auditd_utils.sh
prepare_auditd_test_enviroment
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
# packages = audit
# platform = Red Hat Enterprise Linux 8,multi_platform_fedora
# platform = Red Hat Enterprise Linux 8,multi_platform_fedora,SUSE Linux Enterprise 15

. $SHARED/auditd_utils.sh
prepare_auditd_test_enviroment
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
# packages = audit
# platform = Red Hat Enterprise Linux 8,multi_platform_fedora
# platform = Red Hat Enterprise Linux 8,multi_platform_fedora,SUSE Linux Enterprise 15

. $SHARED/auditd_utils.sh
prepare_auditd_test_enviroment
Expand Down

0 comments on commit 6b97cb2

Please sign in to comment.