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

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