aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Quigley <bryan.quigley@canonical.com>2019-03-19 10:37:36 -0700
committerBryn M. Reeves <bmr@redhat.com>2019-03-21 12:41:52 +0000
commit7d2661b8153220157b6e47eb6d89b030b2c1718d (patch)
treefba27ee0bd1220ac6e89d35930e42d38c8bc3478
parent1e2cddcc29927cb7efef2b0d98acf2cc10482d73 (diff)
downloadsos-7d2661b8153220157b6e47eb6d89b030b2c1718d.tar.gz
[systemd] avoid collecting /dev/null
Avoid "collecting" /dev/null as part of the systemd plugin. In my testing that was the only plugin that brought it in. Creating these character devices makes it harder to manage (delete) extracted sosreports without more permissions. This supersedes #1469 which removed the ability to "collect" char devices. As we only have one example today, let's just exclude that. Resolves: #1595 Signed-off-by: Bryan Quigley <bryan.quigley@canonical.com> Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r--sos/plugins/systemd.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/sos/plugins/systemd.py b/sos/plugins/systemd.py
index ea34889e..cd21d517 100644
--- a/sos/plugins/systemd.py
+++ b/sos/plugins/systemd.py
@@ -70,5 +70,6 @@ class Systemd(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin):
"/etc/modules-load.d/*.conf",
"/etc/yum/protected.d/systemd.conf"
])
+ self.add_forbidden_path('/dev/null')
# vim: set et ts=4 sw=4 :