aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Haxby <john.haxby@oracle.com>2015-01-28 19:34:27 +0000
committerBryn M. Reeves <bmr@redhat.com>2015-01-28 19:34:27 +0000
commit476b7bccd4e1ce2fc011700e1300ed557e2f5299 (patch)
tree06b6c00f51dc1273af22a1b0ec3d6688c9e88e47
parent7b2885740216f8e4076781e088d37cb7b4f96f63 (diff)
downloadsos-476b7bccd4e1ce2fc011700e1300ed557e2f5299.tar.gz
[selinux] fixfiles produces no useful output, use restorecon
Also discard stderr for restorecon since that just reports files that have no default context which is almost certainly not useful for sos. Signed-off-by: John Haxby <john.haxby@oracle.com> Signed-off-by: Bryn M. Reeves <bmr@redhat.com> --- sos/plugins/selinux.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
-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 c914a9b1..9647b061 100644
--- a/sos/plugins/selinux.py
+++ b/sos/plugins/selinux.py
@@ -39,7 +39,7 @@ class SELinux(Plugin, RedHatPlugin):
"ps axuZww"
])
if self.get_option('fixfiles'):
- self.add_cmd_output("fixfiles -v check")
+ self.add_cmd_output("restorecon -Rvn /", stderr=False)
if self.get_option('list'):
self.add_cmd_output([
"semanage fcontext -l",