Blame SOURCES/sos-bz1614955-ceph-dont-collect-tmp-mnt.patch

fce3c4
From dfed1abf3cac691cfc669bbf4e07e58e2e637776 Mon Sep 17 00:00:00 2001
fce3c4
From: Pavel Moravec <pmoravec@redhat.com>
fce3c4
Date: Fri, 27 Jul 2018 08:27:45 +0200
fce3c4
Subject: [PATCH] [apparmor,ceph] fix typo in add_forbidden_path
fce3c4
fce3c4
commit 29a40b7 removed leading '/' from two forbidden paths
fce3c4
fce3c4
Resolves: #1388
fce3c4
fce3c4
Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
fce3c4
---
fce3c4
 sos/plugins/apparmor.py | 2 +-
fce3c4
 sos/plugins/ceph.py     | 2 +-
fce3c4
 2 files changed, 2 insertions(+), 2 deletions(-)
fce3c4
fce3c4
diff --git a/sos/plugins/apparmor.py b/sos/plugins/apparmor.py
fce3c4
index c4c64baf..e239c0b5 100644
fce3c4
--- a/sos/plugins/apparmor.py
fce3c4
+++ b/sos/plugins/apparmor.py
fce3c4
@@ -26,7 +26,7 @@ class Apparmor(Plugin, UbuntuPlugin):
fce3c4
         self.add_forbidden_path([
fce3c4
             "/etc/apparmor.d/cache",
fce3c4
             "/etc/apparmor.d/libvirt/libvirt*",
fce3c4
-            "etc/apparmor.d/abstractions"
fce3c4
+            "/etc/apparmor.d/abstractions"
fce3c4
         ])
fce3c4
 
fce3c4
         self.add_cmd_output([
fce3c4
diff --git a/sos/plugins/ceph.py b/sos/plugins/ceph.py
fce3c4
index 10e48b62..ed6816b2 100644
fce3c4
--- a/sos/plugins/ceph.py
fce3c4
+++ b/sos/plugins/ceph.py
fce3c4
@@ -77,7 +77,7 @@ class Ceph(Plugin, RedHatPlugin, UbuntuPlugin):
fce3c4
             "/var/lib/ceph/mon/*",
fce3c4
             # Excludes temporary ceph-osd mount location like
fce3c4
             # /var/lib/ceph/tmp/mnt.XXXX from sos collection.
fce3c4
-            "var/lib/ceph/tmp/*mnt*",
fce3c4
+            "/var/lib/ceph/tmp/*mnt*",
fce3c4
             "/etc/ceph/*bindpass*"
fce3c4
         ])
fce3c4
 
fce3c4
-- 
fce3c4
2.17.1
fce3c4