diff options
author | Kees Cook <keescook@chromium.org> | 2021-10-07 09:58:01 -0700 |
---|---|---|
committer | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2021-10-07 14:09:13 -0400 |
commit | a7ec0c10429bb1e14591e33c08baf3aee28c26dd (patch) | |
tree | cc868e679dbe9d0064e25b088b43d3954537d168 | |
parent | 6c8eded3cf00c49c932c49c173a1efb1508facfb (diff) | |
download | patatt-a7ec0c10429bb1e14591e33c08baf3aee28c26dd.tar.gz |
gnupg: Add gpg status output to debug logging
There wasn't an easy way to see how a failure was being determined by
GPG, so add the entire GPG status output to the debug log.
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
Link: https://lore.kernel.org/r/20211007165801.2313136-1-keescook@chromium.org
-rw-r--r-- | patatt/__init__.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/patatt/__init__.py b/patatt/__init__.py index 2e33bce..5b4acbc 100644 --- a/patatt/__init__.py +++ b/patatt/__init__.py @@ -371,6 +371,7 @@ class DevsigHeader: signtime = '' signkey = '' + logger.debug('GNUPG status:\n\t%s', status.decode().strip().replace('\n', '\n\t')) gs_matches = re.search(rb'^\[GNUPG:] GOODSIG ([0-9A-F]+)\s+(.*)$', status, flags=re.M) if gs_matches: good = True |