Blame SOURCES/scap-security-guide-0.1.58-cis_rhel7_updates-PR_7384.patch

362bfa
From 44976b5fda0f34e78a0a0764add645212bd4e26d Mon Sep 17 00:00:00 2001
362bfa
From: Vojtech Polasek <vpolasek@redhat.com>
362bfa
Date: Thu, 12 Aug 2021 11:08:56 +0200
362bfa
Subject: [PATCH 1/4] remove automated: yes for 1.1.6, rule is missing
362bfa
362bfa
---
362bfa
 controls/cis_rhel7.yml | 3 +--
362bfa
 1 file changed, 1 insertion(+), 2 deletions(-)
362bfa
362bfa
diff --git a/controls/cis_rhel7.yml b/controls/cis_rhel7.yml
362bfa
index 6a333693fb..7298158ad3 100644
362bfa
--- a/controls/cis_rhel7.yml
362bfa
+++ b/controls/cis_rhel7.yml
362bfa
@@ -95,8 +95,7 @@ controls:
362bfa
     levels:
362bfa
     - l1_server
362bfa
     - l1_workstation
362bfa
-    automated: yes
362bfa
-#     rules:
362bfa
+    automated: no # rule missing
362bfa
 
362bfa
   - id: 1.1.7
362bfa
     title: Ensure noexec option set on /dev/shm partition (Automated)
362bfa
362bfa
From 4dcbe4b2d4a9c14527edd06e90809630877d97aa Mon Sep 17 00:00:00 2001
362bfa
From: Vojtech Polasek <vpolasek@redhat.com>
362bfa
Date: Thu, 12 Aug 2021 11:21:20 +0200
362bfa
Subject: [PATCH 2/4] add rule for 3.5.1.5 - firewalld default zone
362bfa
362bfa
---
362bfa
 controls/cis_rhel7.yml                                        | 4 +++-
362bfa
 .../ruleset_modifications/set_firewalld_default_zone/rule.yml | 1 +
362bfa
 2 files changed, 4 insertions(+), 1 deletion(-)
362bfa
362bfa
diff --git a/controls/cis_rhel7.yml b/controls/cis_rhel7.yml
362bfa
index 7298158ad3..0f3cec2a83 100644
362bfa
--- a/controls/cis_rhel7.yml
362bfa
+++ b/controls/cis_rhel7.yml
362bfa
@@ -1022,7 +1022,9 @@ controls:
362bfa
     levels:
362bfa
     - l1_server
362bfa
     - l1_workstation
362bfa
-    automated: no # no exact rule is present
362bfa
+    automated: yes
362bfa
+    rules:
362bfa
+    - set_firewalld_default_zone
362bfa
 
362bfa
   - id: 3.5.1.6
362bfa
     title: Ensure network interfaces are assigned to appropriate zone (Manual)
362bfa
diff --git a/linux_os/guide/system/network/network-firewalld/ruleset_modifications/set_firewalld_default_zone/rule.yml b/linux_os/guide/system/network/network-firewalld/ruleset_modifications/set_firewalld_default_zone/rule.yml
362bfa
index 48de06c5bc..f4d78fb7a1 100644
362bfa
--- a/linux_os/guide/system/network/network-firewalld/ruleset_modifications/set_firewalld_default_zone/rule.yml
362bfa
+++ b/linux_os/guide/system/network/network-firewalld/ruleset_modifications/set_firewalld_default_zone/rule.yml
362bfa
@@ -27,6 +27,7 @@ identifiers:
362bfa
 
362bfa
 references:
362bfa
     cis-csc: 11,14,3,9
362bfa
+    cis@rhel7: 3.5.1.5
362bfa
     cis@rhel8: 3.4.2.4
362bfa
     cis@sle15: 3.5.1.5
362bfa
     cjis: 5.10.1
362bfa
362bfa
From a13a796ee8c33ae98e93072bfc7ee15182bdfb5c Mon Sep 17 00:00:00 2001
362bfa
From: Vojtech Polasek <vpolasek@redhat.com>
362bfa
Date: Thu, 12 Aug 2021 11:45:52 +0200
362bfa
Subject: [PATCH 3/4] partially cover 5.5.1.4
362bfa
362bfa
---
362bfa
 controls/cis_rhel7.yml                                       | 5 ++++-
362bfa
 .../account_disable_post_pw_expiration/rule.yml              | 2 +-
362bfa
 2 files changed, 5 insertions(+), 2 deletions(-)
362bfa
362bfa
diff --git a/controls/cis_rhel7.yml b/controls/cis_rhel7.yml
362bfa
index 0f3cec2a83..78ac34817f 100644
362bfa
--- a/controls/cis_rhel7.yml
362bfa
+++ b/controls/cis_rhel7.yml
362bfa
@@ -1966,7 +1966,10 @@ controls:
362bfa
     levels:
362bfa
     - l1_server
362bfa
     - l1_workstation
362bfa
-    automated: no # rule missing
362bfa
+    automated: partially # we do not check /et/shadow
362bfa
+    rules:
362bfa
+    - account_disable_post_pw_expiration
362bfa
+    - var_account_disable_post_pw_expiration=30
362bfa
 
362bfa
   - id: 5.5.1.5
362bfa
     title: Ensure all users last password change date is in the past (Automated)
362bfa
diff --git a/linux_os/guide/system/accounts/accounts-restrictions/account_expiration/account_disable_post_pw_expiration/rule.yml b/linux_os/guide/system/accounts/accounts-restrictions/account_expiration/account_disable_post_pw_expiration/rule.yml
362bfa
index 310e234d43..a3d81cf73f 100644
362bfa
--- a/linux_os/guide/system/accounts/accounts-restrictions/account_expiration/account_disable_post_pw_expiration/rule.yml
362bfa
+++ b/linux_os/guide/system/accounts/accounts-restrictions/account_expiration/account_disable_post_pw_expiration/rule.yml
362bfa
@@ -34,7 +34,7 @@ identifiers:
362bfa
 
362bfa
 references:
362bfa
     cis-csc: 1,12,13,14,15,16,18,3,5,7,8
362bfa
-    cis@rhel7: 5.4.1.4
362bfa
+    cis@rhel7: 5.5.1.4
362bfa
     cis@rhel8: 5.5.1.4
362bfa
     cis@ubuntu2004: 5.4.1.4
362bfa
     cjis: 5.6.2.1.1
362bfa
362bfa
From 31ecc1b5806e7bc14199904b0a4e4d7b027ef7c4 Mon Sep 17 00:00:00 2001
362bfa
From: Vojtech Polasek <vpolasek@redhat.com>
362bfa
Date: Thu, 12 Aug 2021 11:52:09 +0200
362bfa
Subject: [PATCH 4/4] automate 6.2.5
362bfa
362bfa
---
362bfa
 controls/cis_rhel7.yml                                        | 4 +++-
362bfa
 .../account_expiration/account_unique_name/rule.yml           | 1 +
362bfa
 2 files changed, 4 insertions(+), 1 deletion(-)
362bfa
362bfa
diff --git a/controls/cis_rhel7.yml b/controls/cis_rhel7.yml
362bfa
index 78ac34817f..672b96cbeb 100644
362bfa
--- a/controls/cis_rhel7.yml
362bfa
+++ b/controls/cis_rhel7.yml
362bfa
@@ -2205,7 +2205,9 @@ controls:
362bfa
     levels:
362bfa
     - l1_server
362bfa
     - l1_workstation
362bfa
-    automated: no # rule missing
362bfa
+    automated: yes
362bfa
+    rules:
362bfa
+    - account_unique_name
362bfa
 
362bfa
   - id: 6.2.6
362bfa
     title: Ensure no duplicate group names exist (Automated)
362bfa
diff --git a/linux_os/guide/system/accounts/accounts-restrictions/account_expiration/account_unique_name/rule.yml b/linux_os/guide/system/accounts/accounts-restrictions/account_expiration/account_unique_name/rule.yml
362bfa
index 484b3c4f90..5f6377f194 100644
362bfa
--- a/linux_os/guide/system/accounts/accounts-restrictions/account_expiration/account_unique_name/rule.yml
362bfa
+++ b/linux_os/guide/system/accounts/accounts-restrictions/account_expiration/account_unique_name/rule.yml
362bfa
@@ -20,6 +20,7 @@ identifiers:
362bfa
     cce@rhel9: CCE-83628-8
362bfa
 
362bfa
 references:
362bfa
+    cis@rhel7: 6.2.5
362bfa
     cis@rhel8: 6.2.17
362bfa
     cjis: 5.5.2
362bfa
     disa: CCI-000770,CCI-000804