aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenaud Métrich <rmetrich@redhat.com>2020-03-10 13:38:55 +0100
committerJake Hunsaker <jhunsake@redhat.com>2020-03-18 09:44:03 -0400
commit5b5302e7a7b1931d51e4960a9a56f14cd0c855c1 (patch)
treeed187e197cf934b0f85893fc76c7300384130edd
parent566b86905957e5806c2bbab4215774bae80a0cf0 (diff)
downloadsos-5b5302e7a7b1931d51e4960a9a56f14cd0c855c1.tar.gz
[selinux] collect /var/lib/selinux
On RHEL 8, modules and contexts are not in /etc/selinux/<policy> directory anymore, but in /var/lib/selinux/<policy> directory. Resolves: #1976 Signed-off-by: Renaud Métrich <rmetrich@redhat.com> Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
-rw-r--r--sos/plugins/selinux.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/sos/plugins/selinux.py b/sos/plugins/selinux.py
index 1e9f24ca..d98b6745 100644
--- a/sos/plugins/selinux.py
+++ b/sos/plugins/selinux.py
@@ -23,7 +23,8 @@ class SELinux(Plugin, RedHatPlugin):
def setup(self):
self.add_copy_spec([
'/etc/sestatus.conf',
- '/etc/selinux'
+ '/etc/selinux',
+ '/var/lib/selinux'
])
self.add_cmd_output('sestatus')