From 4a85755f9013e760ef0e3c608f936beb894da3c3 Mon Sep 17 00:00:00 2001 From: "Bryn M. Reeves" Date: Wed, 21 Aug 2013 16:18:55 +0100 Subject: Add ausearch and semange customisations to SELinux plug-in Signed-off-by: Bryn M. Reeves --- sos/plugins/selinux.py | 5 +++++ 1 file changed, 5 insertions(+) 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'): -- cgit