diff options
author | Bryn M. Reeves <bmr@redhat.com> | 2013-08-21 16:18:55 +0100 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2013-08-21 16:18:55 +0100 |
commit | 4a85755f9013e760ef0e3c608f936beb894da3c3 (patch) | |
tree | 6f74ebffd7ffe7298aa5945323e4359335201e42 | |
parent | 3f51d800c2c107618d4ac9a55ebeee7113691ac6 (diff) | |
download | sos-4a85755f9013e760ef0e3c608f936beb894da3c3.tar.gz |
Add ausearch and semange customisations to SELinux plug-in
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r-- | sos/plugins/selinux.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sos/plugins/selinux.py b/sos/plugins/selinux.py index b7deae5a..9732873e 100644 --- a/sos/plugins/selinux.py +++ b/sos/plugins/selinux.py @@ -13,6 +13,7 @@ ## Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. from sos.plugins import Plugin, RedHatPlugin +from os.path import join class SELinux(Plugin, RedHatPlugin): """selinux related information @@ -32,6 +33,10 @@ class SELinux(Plugin, RedHatPlugin): self.add_cmd_output("selinuxdefcon root") self.add_cmd_output("selinuxconlist root") self.add_cmd_output("selinuxexeccon /bin/passwd") + self.add_cmd_output("ausearch -m avc,user_avc -ts today") + semanage_custom_dest = join(self.get_cmd_dir(), + "selinux.custom") + self.add_cmd_output("semanage -o %s" % semanage_custom_dest) if self.get_option('fixfiles'): self.add_cmd_output("fixfiles -v check") if self.get_option('list'): |