1 |
commit: a50597d0202a4968147c1b5d96ebeeb1872b0ffe |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Oct 31 22:17:21 2020 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Oct 31 22:18:50 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a50597d0 |
7 |
|
8 |
verify-sig.eclass: Predict attempted writes to /run/user |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
eclass/verify-sig.eclass | 5 +++++ |
13 |
1 file changed, 5 insertions(+) |
14 |
|
15 |
diff --git a/eclass/verify-sig.eclass b/eclass/verify-sig.eclass |
16 |
index 5448bf2155d..83929098e6d 100644 |
17 |
--- a/eclass/verify-sig.eclass |
18 |
+++ b/eclass/verify-sig.eclass |
19 |
@@ -98,6 +98,11 @@ verify-sig_verify_detached() { |
20 |
--keyserver "${VERIFY_SIG_OPENPGP_KEYSERVER}" |
21 |
) |
22 |
|
23 |
+ # GPG upstream knows better than to follow the spec, so we can't |
24 |
+ # override this directory. However, there is a clean fallback |
25 |
+ # to GNUPGHOME. |
26 |
+ addpredict /run/user |
27 |
+ |
28 |
einfo "Verifying ${file##*/} ..." |
29 |
gemato gpg-wrap -K "${key}" "${extra_args[@]}" -- \ |
30 |
gpg --verify "${sig}" "${file}" || |