[PATCH 1/2] skip luks passphrase in exception dump (#868509)
Brian C. Lane
bcl at redhat.com
Fri Oct 26 21:06:34 UTC 2012
From: "Brian C. Lane" <bcl at redhat.com>
Also skip logging any kwargs with pass in their name
---
pyanaconda/anaconda_log.py | 2 ++
pyanaconda/exception.py | 1 +
2 files changed, 3 insertions(+)
diff --git a/pyanaconda/anaconda_log.py b/pyanaconda/anaconda_log.py
index 40c1938..046cca7 100644
--- a/pyanaconda/anaconda_log.py
+++ b/pyanaconda/anaconda_log.py
@@ -86,6 +86,8 @@ def log_method_call(d, *args, **kwargs):
for k, v in kwargs.items():
fmt += " %s: %s ;"
+ if "pass" in k.lower() and v:
+ v = "Skipped"
fmt_args.extend([k, v])
logging.getLogger("storage").debug(fmt % tuple(fmt_args))
diff --git a/pyanaconda/exception.py b/pyanaconda/exception.py
index 7b37914..09f9837 100644
--- a/pyanaconda/exception.py
+++ b/pyanaconda/exception.py
@@ -157,6 +157,7 @@ def initExceptionHandling(anaconda):
attrSkipList=["_intf._actions",
"_intf.storage.bootloader.password",
"_intf.storage.data",
+ "_intf.storage.encryptionPassphrase",
"_bootloader.encrypted_password",
"_bootloader.password",
"payload._groups",
--
1.7.11.7
More information about the anaconda-patches
mailing list