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

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