diff options
author | Jake Hunsaker <jhunsake@redhat.com> | 2018-06-04 13:20:22 -0400 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2018-06-07 15:58:05 +0100 |
commit | 5f2e731f5d034c9d67ac8273dc0e4810f7cda289 (patch) | |
tree | 2023537d4cbe21387cd60ffd6cc2725f5fd6958b | |
parent | d22f226c642053b30c4bf9520e8fdd5611c7dc33 (diff) | |
download | sos-5f2e731f5d034c9d67ac8273dc0e4810f7cda289.tar.gz |
[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 <jhunsake@redhat.com>
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r-- | sos/plugins/filesys.py | 9 |
1 files changed, 8 insertions, 1 deletions
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 : |