aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2012-12-04 20:35:31 +0000
committerBryn M. Reeves <bmr@redhat.com>2012-12-04 20:35:31 +0000
commit0a2e482ee804c0ccfd7c848668bfeefb99a5f94b (patch)
treebe1578d44ba4b3778511ad50bb6bf533a3eaf6e7
parent205ff686a35db7d21a02b6828c6058f52707cdef (diff)
downloadsos-0a2e482ee804c0ccfd7c848668bfeefb99a5f94b.tar.gz
Obscure root password if present in anacond-ks.cfg
-rw-r--r--sos/plugins/anaconda.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/sos/plugins/anaconda.py b/sos/plugins/anaconda.py
index b37db44d..72b75775 100644
--- a/sos/plugins/anaconda.py
+++ b/sos/plugins/anaconda.py
@@ -28,3 +28,8 @@ class anaconda(Plugin, RedHatPlugin):
"/var/log/anaconda.log",
"/var/log/anaconda.syslog",
"/var/log/anaconda.xlog"])
+
+ def postproc(self):
+ self.doRegexSub("/root/anaconda-ks.cfg",
+ r"(\s*rootpw\s*).*",
+ r"\1******")