aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2014-06-20 11:01:08 +0100
committerBryn M. Reeves <bmr@redhat.com>2014-06-20 11:01:08 +0100
commitcdb987afb42da238828fb49fdb539a4b9621f8ec (patch)
tree6042cd0a66abeeeafb6227b36893f5bee1e096b2
parent846382c20032f287b48c667333fb01df8841e976 (diff)
downloadsos-cdb987afb42da238828fb49fdb539a4b9621f8ec.tar.gz
[selinux] pass --input-logs when calling ausearch
If ausearch is run without a tty it expects log data to be fed on stdin. This causes the selinux plugin to appear to hang when run e.g. over an ssh session. Force the command to use the logs defined in auditd.conf by specifying --input-logs. Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r--sos/plugins/selinux.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sos/plugins/selinux.py b/sos/plugins/selinux.py
index 26124de8..65e24624 100644
--- a/sos/plugins/selinux.py
+++ b/sos/plugins/selinux.py
@@ -34,7 +34,7 @@ class SELinux(Plugin, RedHatPlugin):
"selinuxdefcon root",
"selinuxconlist root",
"selinuxexeccon /bin/passwd",
- "ausearch -m avc,user_avc -ts today",
+ "ausearch --input-logs -m avc,user_avc -ts today",
"semanage -o -"
])
if self.get_option('fixfiles'):