From 5f2e731f5d034c9d67ac8273dc0e4810f7cda289 Mon Sep 17 00:00:00 2001 From: Jake Hunsaker Date: Mon, 4 Jun 2018 13:20:22 -0400 Subject: [filesys] Add permission and selinux check for /tmp Adds a check for the /tmp directory for permissions and selinux context. If either of these are incorrect, the system in question can exhibit strange behavior and otherwise be difficult for support teams to detect. On systems where SELinux is disabled, the permission check is still relevant and the command still produces useful output with the -Z option. Resolves: #1327 Signed-off-by: Jake Hunsaker Signed-off-by: Bryn M. Reeves --- sos/plugins/filesys.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/sos/plugins/filesys.py b/sos/plugins/filesys.py index e489f6c7..3a721067 100644 --- a/sos/plugins/filesys.py +++ b/sos/plugins/filesys.py @@ -9,7 +9,7 @@ from sos.plugins import Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin -class Filesys(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin): +class Filesys(Plugin, DebianPlugin, UbuntuPlugin): """Local file systems """ @@ -69,4 +69,11 @@ class Filesys(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin): self.do_cmd_output_sub("lsof", regex, '') + +class RedHatFilesys(Filesys, RedHatPlugin): + + def setup(self): + super(RedHatFilesys, self).setup() + self.add_cmd_output("ls -ltradZ /tmp") + # vim: set et ts=4 sw=4 : -- cgit