Blame SOURCES/scap-security-guide-0.1.55-drop_fix_sysctl_kernel_modules_disabled-PR_6586.patch

618a7c
From 01b1ade0e5713bf3f11f78cc0ca7e43f74eb8a46 Mon Sep 17 00:00:00 2001
618a7c
From: Watson Sato <wsato@redhat.com>
618a7c
Date: Tue, 2 Feb 2021 01:02:48 +0100
618a7c
Subject: [PATCH 1/2] Drop remediation for sysctl_kernel_modules_disabled
618a7c
618a7c
Remediating this during kickstart install time renders the machine
618a7c
unbootable.
618a7c
---
618a7c
 .../restrictions/sysctl_kernel_modules_disabled/rule.yml       | 3 +++
618a7c
 1 file changed, 3 insertions(+)
618a7c
618a7c
diff --git a/linux_os/guide/system/permissions/restrictions/sysctl_kernel_modules_disabled/rule.yml b/linux_os/guide/system/permissions/restrictions/sysctl_kernel_modules_disabled/rule.yml
618a7c
index 1811c43815..34e8290f74 100644
618a7c
--- a/linux_os/guide/system/permissions/restrictions/sysctl_kernel_modules_disabled/rule.yml
618a7c
+++ b/linux_os/guide/system/permissions/restrictions/sysctl_kernel_modules_disabled/rule.yml
618a7c
@@ -32,3 +32,6 @@ template:
618a7c
         sysctlvar: kernel.modules_disabled
618a7c
         sysctlval: '1'
618a7c
         datatype: int
618a7c
+    backends:
618a7c
+        # Automated remediation of this rule disrupts installs via kickstart
618a7c
+        bash: 'off'
618a7c
618a7c
From 77eeafd1af1445a185651c77b143bce0004badda Mon Sep 17 00:00:00 2001
618a7c
From: Watson Sato <wsato@redhat.com>
618a7c
Date: Tue, 2 Feb 2021 09:23:17 +0100
618a7c
Subject: [PATCH 2/2] Add warning why rule has no remediation
618a7c
618a7c
Rule sysctl_kernel_modules_disabled disrupts the install and boot
618a7c
process if remediated during installation.
618a7c
---
618a7c
 .../restrictions/sysctl_kernel_modules_disabled/rule.yml   | 7 ++++++-
618a7c
 1 file changed, 6 insertions(+), 1 deletion(-)
618a7c
618a7c
diff --git a/linux_os/guide/system/permissions/restrictions/sysctl_kernel_modules_disabled/rule.yml b/linux_os/guide/system/permissions/restrictions/sysctl_kernel_modules_disabled/rule.yml
618a7c
index 34e8290f74..438cd2759e 100644
618a7c
--- a/linux_os/guide/system/permissions/restrictions/sysctl_kernel_modules_disabled/rule.yml
618a7c
+++ b/linux_os/guide/system/permissions/restrictions/sysctl_kernel_modules_disabled/rule.yml
618a7c
@@ -26,6 +26,11 @@ references:
618a7c
 
618a7c
 platform: machine
618a7c
 
618a7c
+warnings:
618a7c
+  - general:
618a7c
+      This rule doesn't come with Bash remediation.
618a7c
+      Remediating this rule during the installation process disrupts the install and boot process.
618a7c
+
618a7c
 template:
618a7c
     name: sysctl
618a7c
     vars:
618a7c
@@ -33,5 +38,5 @@ template:
618a7c
         sysctlval: '1'
618a7c
         datatype: int
618a7c
     backends:
618a7c
-        # Automated remediation of this rule disrupts installs via kickstart
618a7c
+        # Automated remediation of this rule during installations disrupts the first boot
618a7c
         bash: 'off'