Page MenuHome GnuPG

gpg tries to access files outside of build tree during checks
Closed, ResolvedPublic

Description

echo '#!/bin/sh' >./gpg_dearmor
echo "../g10/gpg --no-options --no-greeting \

--no-secmem-warning --batch --dearmor" >>./gpg_dearmor

chmod 755 ./gpg_dearmor
./gpg_dearmor > ./pubring.gpg < ./pubring.asc
gpg: keyblock resource
`/var/tmp/portage/app-crypt/gnupg-1.4.13/homedir/.gnupg/secring.gpg': file open
error
gpg: keyblock resource
`/var/tmp/portage/app-crypt/gnupg-1.4.13/homedir/.gnupg/pubring.gpg': file open
error

Details

External Link
https://bugs.gentoo.org/show_bug.cgi?id=469388
Version
1.4 master

Event Timeline

Actually, gpg should not open the keyfiles at all. Well, unless you have enabled
the SELinux hacks. In that case we better register the keyfiles. The fix seems
to be harmless and thus it makes sense to apply it.

Fix will go into 2.0.21. Thanks.

werner claimed this task.
werner removed a project: Testing.