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