diff options
author | Michał Górny <mgorny@gentoo.org> | 2017-12-18 16:51:45 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2017-12-18 16:51:45 +0100 |
commit | 55d80199c8ed723c7607a09d5e628c1d7949316f (patch) | |
tree | 575ef135372bd9c4db836fefac864b02631145b8 | |
parent | 21a1d34d683e09378e11a72fe356185a5a6b9bb1 (diff) | |
download | gemato-55d80199c8ed723c7607a09d5e628c1d7949316f.tar.gz |
openpgp: Disable scdaemon when running GnuPG
-rw-r--r-- | gemato/openpgp.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gemato/openpgp.py b/gemato/openpgp.py index 0623e58..aadc9e5 100644 --- a/gemato/openpgp.py +++ b/gemato/openpgp.py @@ -4,6 +4,7 @@ # Licensed under the terms of 2-clause BSD license import errno +import os.path import shutil import subprocess import tempfile @@ -56,6 +57,13 @@ class OpenPGPEnvironment(object): self._home = tempfile.mkdtemp() self._impl = None + with open(os.path.join(self._home, 'gpg-agent.conf'), 'w') as f: + f.write('''# autogenerated by gemato + +# avoid any smartcard operations, we are running in isolation +disable-scdaemon +''') + def __enter__(self): return self |