aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Moravec <pmoravec@redhat.com>2018-07-27 08:27:45 +0200
committerBryn M. Reeves <bmr@redhat.com>2018-08-09 13:05:17 +0100
commitdfed1abf3cac691cfc669bbf4e07e58e2e637776 (patch)
treef0f5ec4ffdc19195eca8e3e3e11415ecf8625b6f
parent62f4affbc9fb6da06dd5707e9aa659d206352e87 (diff)
downloadsos-dfed1abf3cac691cfc669bbf4e07e58e2e637776.tar.gz
[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>
-rw-r--r--sos/plugins/apparmor.py2
-rw-r--r--sos/plugins/ceph.py2
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*"
])