Blame SOURCES/scap-security-guide-0.1.58-fix_cis_value_selector-PR_7452.patch

889f2b
From bd790153e02c1d1725f59f5d88c65c77eb1421e9 Mon Sep 17 00:00:00 2001
889f2b
From: Gabriel Becker <ggasparb@redhat.com>
889f2b
Date: Tue, 24 Aug 2021 12:48:46 +0200
889f2b
Subject: [PATCH] Add a new selector for var_system_crypto_policy and use it
889f2b
 RHEL8 CIS.
889f2b
889f2b
This new selector is used to select explicit DEFAULT value in RHEL8 CIS
889f2b
L1 profiles. The "default" selector cannot be selected and it causes
889f2b
errors if used.
889f2b
---
889f2b
 controls/cis_rhel8.yml                                          | 2 +-
889f2b
 .../software/integrity/crypto/var_system_crypto_policy.var      | 1 +
889f2b
 2 files changed, 2 insertions(+), 1 deletion(-)
889f2b
889f2b
diff --git a/controls/cis_rhel8.yml b/controls/cis_rhel8.yml
889f2b
index 29d972427cf..c0d3f5f40de 100644
889f2b
--- a/controls/cis_rhel8.yml
889f2b
+++ b/controls/cis_rhel8.yml
889f2b
@@ -553,7 +553,7 @@ controls:
889f2b
     automated: yes
889f2b
     rules:
889f2b
       - configure_crypto_policy
889f2b
-      - var_system_crypto_policy=default
889f2b
+      - var_system_crypto_policy=default_policy
889f2b
 
889f2b
   # This rule works in conjunction with the configure_crypto_policy above.
889f2b
   # If a system is remediated to CIS Level 1, just the rule above will apply
889f2b
diff --git a/linux_os/guide/system/software/integrity/crypto/var_system_crypto_policy.var b/linux_os/guide/system/software/integrity/crypto/var_system_crypto_policy.var
889f2b
index ce301154a39..8b89848d122 100644
889f2b
--- a/linux_os/guide/system/software/integrity/crypto/var_system_crypto_policy.var
889f2b
+++ b/linux_os/guide/system/software/integrity/crypto/var_system_crypto_policy.var
889f2b
@@ -13,6 +13,7 @@ interactive: false
889f2b
 
889f2b
 options:
889f2b
     default: DEFAULT
889f2b
+    default_policy: DEFAULT
889f2b
     default_nosha1: "DEFAULT:NO-SHA1"
889f2b
     fips: FIPS
889f2b
     fips_ospp: "FIPS:OSPP"