Blame SOURCES/scap-security-guide-0.1.53-update_audisp_network_failure_action-PR_6071.patch

fe0dde
From 4c0470b91583d75c0a364612b9511aa04d67a2c0 Mon Sep 17 00:00:00 2001
fe0dde
From: Vojtech Polasek <vpolasek@redhat.com>
fe0dde
Date: Fri, 11 Sep 2020 12:56:27 +0200
fe0dde
Subject: [PATCH 1/2] use xccdf variable in the rule.yml
fe0dde
fe0dde
---
fe0dde
 .../auditd_audispd_network_failure_action/rule.yml    | 11 ++++-------
fe0dde
 1 file changed, 4 insertions(+), 7 deletions(-)
fe0dde
fe0dde
diff --git a/linux_os/guide/system/auditing/configure_auditd_data_retention/auditd_audispd_network_failure_action/rule.yml b/linux_os/guide/system/auditing/configure_auditd_data_retention/auditd_audispd_network_failure_action/rule.yml
fe0dde
index 9703bba724..01b16a4dd2 100644
fe0dde
--- a/linux_os/guide/system/auditing/configure_auditd_data_retention/auditd_audispd_network_failure_action/rule.yml
fe0dde
+++ b/linux_os/guide/system/auditing/configure_auditd_data_retention/auditd_audispd_network_failure_action/rule.yml
fe0dde
@@ -14,6 +14,7 @@ description: |-
fe0dde
     <tt>halt</tt>. For certain systems, the need for availability
fe0dde
     outweighs the need to log all actions, and a different setting should be
fe0dde
     determined.
fe0dde
+    This profile configures the action to be {{{ sub_var_value("var_audispd_network_failure_action") }}}.
fe0dde
 
fe0dde
 rationale: |-
fe0dde
     Taking appropriate action when there is an error sending audit records to a
fe0dde
@@ -35,11 +36,7 @@ ocil_clause: 'the system is not configured to switch to single user mode for cor
fe0dde
 
fe0dde
 ocil: |-
fe0dde
     Inspect <tt>/etc/audisp/audisp-remote.conf</tt> and locate the following line to
fe0dde
-    determine if the system is configured to either send to syslog, switch to single user mode,
fe0dde
-    or halt when there is a network failure with audispd:
fe0dde
+    determine if the system is configured to perform a correct action according to the policy:
fe0dde
     
grep -i network_failure_action /etc/audisp/audisp-remote.conf
fe0dde
-    The output should return something similar to:
fe0dde
-    
network_failure_action = single
fe0dde
-    Acceptable values also include <tt>syslog</tt> and
fe0dde
-    <tt>halt</tt>.
fe0dde
-
fe0dde
+    The output should return:
fe0dde
+    
network_failure_action = {{{ sub_var_value("var_audispd_network_failure_action") }}}
fe0dde
fe0dde
From 2d7c59fe90d8dad86c6e6743f137a5d1ba580257 Mon Sep 17 00:00:00 2001
fe0dde
From: Vojtech Polasek <vpolasek@redhat.com>
fe0dde
Date: Tue, 22 Sep 2020 08:45:57 +0200
fe0dde
Subject: [PATCH 2/2] change jinja macro used
fe0dde
fe0dde
---
fe0dde
 .../auditd_audispd_network_failure_action/rule.yml            | 4 ++--
fe0dde
 1 file changed, 2 insertions(+), 2 deletions(-)
fe0dde
fe0dde
diff --git a/linux_os/guide/system/auditing/configure_auditd_data_retention/auditd_audispd_network_failure_action/rule.yml b/linux_os/guide/system/auditing/configure_auditd_data_retention/auditd_audispd_network_failure_action/rule.yml
fe0dde
index 01b16a4dd2..9e677d225c 100644
fe0dde
--- a/linux_os/guide/system/auditing/configure_auditd_data_retention/auditd_audispd_network_failure_action/rule.yml
fe0dde
+++ b/linux_os/guide/system/auditing/configure_auditd_data_retention/auditd_audispd_network_failure_action/rule.yml
fe0dde
@@ -14,7 +14,7 @@ description: |-
fe0dde
     <tt>halt</tt>. For certain systems, the need for availability
fe0dde
     outweighs the need to log all actions, and a different setting should be
fe0dde
     determined.
fe0dde
-    This profile configures the action to be {{{ sub_var_value("var_audispd_network_failure_action") }}}.
fe0dde
+    This profile configures the action to be <tt>{{{ xccdf_value("var_audispd_network_failure_action") }}}</tt>.
fe0dde
 
fe0dde
 rationale: |-
fe0dde
     Taking appropriate action when there is an error sending audit records to a
fe0dde
@@ -39,4 +39,4 @@ ocil: |-
fe0dde
     determine if the system is configured to perform a correct action according to the policy:
fe0dde
     
grep -i network_failure_action /etc/audisp/audisp-remote.conf
fe0dde
     The output should return:
fe0dde
-    
network_failure_action = {{{ sub_var_value("var_audispd_network_failure_action") }}}
fe0dde
+    
network_failure_action = {{{ xccdf_value("var_audispd_network_failure_action") }}}