Blame SOURCES/scap-security-guide-0.1.56-add_rules_for_selinux_packages_removed-PR_6969.patch

a8c580
From 0c9c768e111f71e141a599053d2d6c4d3e56d5a1 Mon Sep 17 00:00:00 2001
a8c580
From: Watson Sato <wsato@redhat.com>
a8c580
Date: Thu, 6 May 2021 19:43:25 +0200
a8c580
Subject: [PATCH] Add rules to remove setroubleshoot packages
a8c580
a8c580
Added rules to remove setroubleshoot-plugins and server.
a8c580
---
a8c580
 controls/anssi.yml                            |  2 ++
a8c580
 .../rule.yml                                  | 32 ++++++++++++++++++
a8c580
 .../rule.yml                                  | 33 +++++++++++++++++++
a8c580
 4 files changed, 67 insertions(+), 8 deletions(-)
a8c580
 create mode 100644 linux_os/guide/system/selinux/package_setroubleshoot-plugins_removed/rule.yml
a8c580
 create mode 100644 linux_os/guide/system/selinux/package_setroubleshoot-server_removed/rule.yml
a8c580
a8c580
diff --git a/controls/anssi.yml b/controls/anssi.yml
a8c580
index 705f8e25aab..603f224ffaa 100644
a8c580
--- a/controls/anssi.yml
a8c580
+++ b/controls/anssi.yml
a8c580
@@ -983,6 +983,8 @@ controls:
a8c580
       on a machine in production.
a8c580
     rules:
a8c580
     - package_setroubleshoot_removed
a8c580
+    - package_setroubleshoot-server_removed
a8c580
+    - package_setroubleshoot-plugins_removed
a8c580
 
a8c580
   - id: R69
a8c580
     level: high
a8c580
diff --git a/linux_os/guide/system/selinux/package_setroubleshoot-plugins_removed/rule.yml b/linux_os/guide/system/selinux/package_setroubleshoot-plugins_removed/rule.yml
a8c580
new file mode 100644
a8c580
index 00000000000..d20c1116dc0
a8c580
--- /dev/null
a8c580
+++ b/linux_os/guide/system/selinux/package_setroubleshoot-plugins_removed/rule.yml
a8c580
@@ -0,0 +1,32 @@
a8c580
+documentation_complete: true
a8c580
+
a8c580
+prodtype: fedora,ol7,ol8,rhcos4,rhel7,rhel8,rhel9
a8c580
+
a8c580
+title: 'Uninstall setroubleshoot-plugins Package'
a8c580
+
a8c580
+description: |-
a8c580
+    The SETroubleshoot plugins are used to analyze SELinux AVC data. The service provides information around configuration errors,
a8c580
+    unauthorized intrusions, and other potential errors.
a8c580
+    {{{ describe_package_remove(package="setroubleshoot-plugins") }}}
a8c580
+
a8c580
+rationale: |-
a8c580
+    The SETroubleshoot service is an unnecessary daemon to
a8c580
+    have running on a server.
a8c580
+
a8c580
+severity: low
a8c580
+
a8c580
+identifiers:
a8c580
+    cce@rhcos4: CCE-84091-8
a8c580
+    cce@rhel7: CCE-84249-2
a8c580
+    cce@rhel8: CCE-84250-0
a8c580
+    cce@rhel9: CCE-84251-8
a8c580
+
a8c580
+references:
a8c580
+    anssi: BP28(R68)
a8c580
+
a8c580
+{{{ complete_ocil_entry_package(package="setroubleshoot-plugins") }}}
a8c580
+
a8c580
+template:
a8c580
+    name: package_removed
a8c580
+    vars:
a8c580
+        pkgname: setroubleshoot-plugins
a8c580
diff --git a/linux_os/guide/system/selinux/package_setroubleshoot-server_removed/rule.yml b/linux_os/guide/system/selinux/package_setroubleshoot-server_removed/rule.yml
a8c580
new file mode 100644
a8c580
index 00000000000..c5fec06ddc5
a8c580
--- /dev/null
a8c580
+++ b/linux_os/guide/system/selinux/package_setroubleshoot-server_removed/rule.yml
a8c580
@@ -0,0 +1,33 @@
a8c580
+documentation_complete: true
a8c580
+
a8c580
+prodtype: fedora,ol7,ol8,rhcos4,rhel7,rhel8,rhel9
a8c580
+
a8c580
+title: 'Uninstall setroubleshoot-server Package'
a8c580
+
a8c580
+description: |-
a8c580
+    The SETroubleshoot service notifies desktop users of SELinux
a8c580
+    denials. The service provides information around configuration errors,
a8c580
+    unauthorized intrusions, and other potential errors.
a8c580
+    {{{ describe_package_remove(package="setroubleshoot-server") }}}
a8c580
+
a8c580
+rationale: |-
a8c580
+    The SETroubleshoot service is an unnecessary daemon to have
a8c580
+    running on a server.
a8c580
+
a8c580
+severity: low
a8c580
+
a8c580
+identifiers:
a8c580
+    cce@rhcos4: CCE-84093-4
a8c580
+    cce@rhel7: CCE-83488-7
a8c580
+    cce@rhel8: CCE-83490-3
a8c580
+    cce@rhel9: CCE-84252-6
a8c580
+
a8c580
+references:
a8c580
+    anssi: BP28(R68)
a8c580
+
a8c580
+{{{ complete_ocil_entry_package(package="setroubleshoot-server") }}}
a8c580
+
a8c580
+template:
a8c580
+    name: package_removed
a8c580
+    vars:
a8c580
+        pkgname: setroubleshoot-server