Blame SOURCES/sos-bz1938932-sssd-enable-collecting-memory-cache.patch

5866eb
From 587383ccf28ba4908e3b5749ca0bf4f2bc9eb1c3 Mon Sep 17 00:00:00 2001
5866eb
From: Jan Jansky <jjansky@redhat.com>
5866eb
Date: Tue, 6 Apr 2021 11:00:45 +0200
5866eb
Subject: [PATCH] [sssd] Enable collecting SSSD memory cache
5866eb
5866eb
SSSD plugin by default collects only logs and configuration.
5866eb
This patch enables collecting memory cache maintained
5866eb
by SSSD daemon. Cache does not contain any client sensible
5866eb
data so can be safely included in the sos-report.
5866eb
5866eb
Related: #2444
5866eb
Resolves: #2476
5866eb
5866eb
Signed-off-by: Jan Jansky <jjansky@redhat.com>
5866eb
Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
5866eb
---
5866eb
 sos/plugins/sssd.py | 10 ++++++++--
5866eb
 1 file changed, 8 insertions(+), 2 deletions(-)
5866eb
5866eb
diff --git a/sos/plugins/sssd.py b/sos/plugins/sssd.py
5866eb
index 0c3aaf8..7bdd167 100644
5866eb
--- a/sos/plugins/sssd.py
5866eb
+++ b/sos/plugins/sssd.py
5866eb
@@ -23,10 +23,16 @@ class Sssd(Plugin):
5866eb
 
5866eb
     def setup(self):
5866eb
         self.add_copy_spec([
5866eb
+            # Main config file
5866eb
             "/etc/sssd/sssd.conf",
5866eb
-            "/var/lib/sss/pubconf/krb5.include.d/*",
5866eb
             # SSSD 1.14
5866eb
-            "/etc/sssd/conf.d/*.conf"
5866eb
+            "/etc/sssd/conf.d/*.conf",
5866eb
+            # Main logs directory
5866eb
+            "/var/log/sssd/*",
5866eb
+            # Memory cache
5866eb
+            "/var/lib/sss/mc/*",
5866eb
+            # Dynamic Kerberos configuration
5866eb
+            "/var/lib/sss/pubconf/krb5.include.d/*"
5866eb
         ])
5866eb
 
5866eb
         # add individual log files
5866eb
-- 
5866eb
1.8.3.1
5866eb