diff options
author | Bryn M. Reeves <bmr@errorists.org> | 2012-12-05 14:23:03 +0000 |
---|---|---|
committer | Bryn M. Reeves <bmr@errorists.org> | 2012-12-05 14:23:03 +0000 |
commit | bda29f9f42578b374d51ee375136034bb7215baf (patch) | |
tree | a0586a26a616f0354ab8c5565bec8919633e102c | |
parent | 0269db8627aa26451bb882a04c3f1b3db8c42d6a (diff) | |
download | sos-bda29f9f42578b374d51ee375136034bb7215baf.tar.gz |
Obscure display passwords in collected libvirt/qemu files
-rw-r--r-- | sos/plugins/libvirt.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sos/plugins/libvirt.py b/sos/plugins/libvirt.py index 1c478a68..af5b3f77 100644 --- a/sos/plugins/libvirt.py +++ b/sos/plugins/libvirt.py @@ -19,3 +19,9 @@ class libvirt(Plugin, RedHatPlugin, UbuntuPlugin, DebianPlugin): """ def setup(self): self.addCopySpecs(["/etc/libvirt/", "/var/log/libvirt*"]) + + def postproc(self): + for xmlfile in glob.glob("/etc/libvirt/qemu/*.xml"): + self.doRegexSub(xmlfile, + r"(\s*passwd=\s*')([^']*)('.*$)", + r"\1******\3") |