aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2013-08-22 19:11:56 +0100
committerBryn M. Reeves <bmr@redhat.com>2013-08-22 19:11:56 +0100
commit3fb5bd23d0e22dcf3223238f528a40b21f42ec66 (patch)
tree3a76799fb2178a681501eb9b51ccd4c4255ef2e2
parent5356d086ec9714fd636c2970d9c58a5dfb8bfdca (diff)
downloadsos-3fb5bd23d0e22dcf3223238f528a40b21f42ec66.tar.gz
Make semange use stdout instead of output path
The semanage tool fails to write to a path within the temporary report tree on some distributions due to an SELinux AVC denial. Force the command to write data to stdout instead by passing '-o -'. Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r--sos/plugins/selinux.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/sos/plugins/selinux.py b/sos/plugins/selinux.py
index b5aff468..4b403ea3 100644
--- a/sos/plugins/selinux.py
+++ b/sos/plugins/selinux.py
@@ -34,8 +34,7 @@ class SELinux(Plugin, RedHatPlugin):
self.add_cmd_output("selinuxconlist root")
self.add_cmd_output("selinuxexeccon /bin/passwd")
self.add_cmd_output("ausearch -m avc,user_avc -ts today")
- self.add_cmd_output("semanage -o %s"
- % self.make_cmd_path("selinux.custom"))
+ self.add_cmd_output("semanage -o -")
if self.get_option('fixfiles'):
self.add_cmd_output("fixfiles -v check")
if self.get_option('list'):