Blame SOURCES/sos-bz1861710-collect-var-lib-selinux.patch
|
|
ad6f28 |
From 5b5302e7a7b1931d51e4960a9a56f14cd0c855c1 Mon Sep 17 00:00:00 2001
|
|
|
ad6f28 |
From: =?UTF-8?q?Renaud=20M=C3=A9trich?= <rmetrich@redhat.com>
|
|
|
ad6f28 |
Date: Tue, 10 Mar 2020 13:38:55 +0100
|
|
|
ad6f28 |
Subject: [PATCH] [selinux] collect /var/lib/selinux
|
|
|
ad6f28 |
MIME-Version: 1.0
|
|
|
ad6f28 |
Content-Type: text/plain; charset=UTF-8
|
|
|
ad6f28 |
Content-Transfer-Encoding: 8bit
|
|
|
ad6f28 |
|
|
|
ad6f28 |
On RHEL 8, modules and contexts are not in /etc/selinux/<policy>
|
|
|
ad6f28 |
directory anymore, but in /var/lib/selinux/<policy> directory.
|
|
|
ad6f28 |
|
|
|
ad6f28 |
Resolves: #1976
|
|
|
ad6f28 |
|
|
|
ad6f28 |
Signed-off-by: Renaud Métrich <rmetrich@redhat.com>
|
|
|
ad6f28 |
Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
|
|
|
ad6f28 |
---
|
|
|
ad6f28 |
sos/plugins/selinux.py | 3 ++-
|
|
|
ad6f28 |
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
ad6f28 |
|
|
|
ad6f28 |
diff --git a/sos/plugins/selinux.py b/sos/plugins/selinux.py
|
|
|
ad6f28 |
index 1e9f24ca..d98b6745 100644
|
|
|
ad6f28 |
--- a/sos/plugins/selinux.py
|
|
|
ad6f28 |
+++ b/sos/plugins/selinux.py
|
|
|
ad6f28 |
@@ -23,7 +23,8 @@ class SELinux(Plugin, RedHatPlugin):
|
|
|
ad6f28 |
def setup(self):
|
|
|
ad6f28 |
self.add_copy_spec([
|
|
|
ad6f28 |
'/etc/sestatus.conf',
|
|
|
ad6f28 |
- '/etc/selinux'
|
|
|
ad6f28 |
+ '/etc/selinux',
|
|
|
ad6f28 |
+ '/var/lib/selinux'
|
|
|
ad6f28 |
])
|
|
|
ad6f28 |
self.add_cmd_output('sestatus')
|
|
|
ad6f28 |
|
|
|
ad6f28 |
--
|
|
|
ad6f28 |
2.26.2
|
|
|
ad6f28 |
|