From a50597d0202a4968147c1b5d96ebeeb1872b0ffe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Sat, 31 Oct 2020 23:17:21 +0100 Subject: [PATCH] verify-sig.eclass: Predict attempted writes to /run/user MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- eclass/verify-sig.eclass | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/eclass/verify-sig.eclass b/eclass/verify-sig.eclass index 5448bf2155d8d..83929098e6d80 100644 --- a/eclass/verify-sig.eclass +++ b/eclass/verify-sig.eclass @@ -98,6 +98,11 @@ verify-sig_verify_detached() { --keyserver "${VERIFY_SIG_OPENPGP_KEYSERVER}" ) + # GPG upstream knows better than to follow the spec, so we can't + # override this directory. However, there is a clean fallback + # to GNUPGHOME. + addpredict /run/user + einfo "Verifying ${file##*/} ..." gemato gpg-wrap -K "${key}" "${extra_args[@]}" -- \ gpg --verify "${sig}" "${file}" ||