Blob Blame History Raw
From 8945cfd19c3d06d6cb79774a5d070016482f6976 Mon Sep 17 00:00:00 2001
From: "Bryn M. Reeves" <bmr@redhat.com>
Date: Tue, 26 Nov 2013 17:33:51 +0000
Subject: [PATCH] Do not collect anaconda-ks.cfg in general plug-in

The anaconda kickstart file is Red Hat specific and should not
be collected in the general plugin. It may also contain plaintext
or encrypted passwords - these are handled properly in the
anaconda plugin itself but are missing from the copy in general.

Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
---
 sos/plugins/general.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sos/plugins/general.py b/sos/plugins/general.py
index d7059e6..a6964c4 100644
--- a/sos/plugins/general.py
+++ b/sos/plugins/general.py
@@ -33,8 +33,8 @@ class General(Plugin):
             "/etc/hostid",
             "/var/lib/dbus/machine-id",
             "/etc/exports",
-            "/etc/localtime",
-            "/root/anaconda-ks.cfg"])
+            "/etc/localtime"
+        ])
 
         self.add_cmd_output("hostname", root_symlink="hostname")
         self.add_cmd_output("date", root_symlink="date")
-- 
1.7.11.7