[pkg-gnupg-maint] Bug#869416: Bug#869416: pinentry-gtk2: fails to request passphrase when importing OpenPGP secret key with Seahorse
intrigeri
intrigeri at debian.org
Fri Aug 11 20:54:40 UTC 2017
Hi,
NIIBE Yutaka:
> It seems that the most likely case is the following scenario:
> (1) Upon login, gpg-agent is invoked with no DISPLAY.
This doesn't seem to be the case:
# tr '\0' '\n' < /proc/$(pgrep gpg-agent)/environ | grep -E '^(GPG|DISPLAY|TTY)'
DISPLAY=:0
I've verified that this gpg-agent is the one running as the desktop
user (/usr/bin/gpg-agent --supervised). This might invalidate the next
steps of this hypothesis i.e.:
> (2) While Sheahorse has DISPLAY and invokes gpg by gpgme,
> gpg connects to existing gpg-agent.
> (3) Because gpg-agent has no DISPLAY, when gpg-agent invokes
> pinentry, it fails at isatty(3).
> Could you please try this?
> $ gpg-connect-agent updatestartuptty /bye
> It should be done from your GNOME Terminal, before importing key by
> Seahorse. It updates variables of DISPLAY and TTY in gpg-agent.
I've tried. But then I see no relevant change to gpg-agent's
environment:
# tr '\0' '\n' < /proc/$(pgrep gpg-agent)/environ | grep -E '^(GPG|DISPLAY|TTY)'
DISPLAY=:0
debug-all:
Aug 11 22:47:34 gpg-agent[2069]: DBG: chan_8 -> OK Pleased to meet you, process 2130
Aug 11 22:47:34 gpg-agent[2069]: DBG: chan_8 <- RESET
Aug 11 22:47:34 gpg-agent[2069]: DBG: chan_8 -> OK
Aug 11 22:47:34 gpg-agent[2069]: DBG: chan_8 <- OPTION ttyname=/dev/pts/2
Aug 11 22:47:34 gpg-agent[2069]: DBG: chan_8 -> OK
Aug 11 22:47:34 gpg-agent[2069]: DBG: chan_8 <- OPTION ttytype=xterm-256color
Aug 11 22:47:34 gpg-agent[2069]: DBG: chan_8 -> OK
Aug 11 22:47:34 gpg-agent[2069]: DBG: chan_8 <- OPTION display=:0
Aug 11 22:47:34 gpg-agent[2069]: DBG: chan_8 -> OK
Aug 11 22:47:34 gpg-agent[2069]: DBG: chan_8 <- OPTION putenv=DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
Aug 11 22:47:34 gpg-agent[2069]: DBG: chan_8 -> OK
Aug 11 22:47:34 gpg-agent[2069]: DBG: chan_8 <- OPTION lc-ctype=fr_FR.UTF-8
Aug 11 22:47:34 gpg-agent[2069]: DBG: chan_8 -> OK
Aug 11 22:47:34 gpg-agent[2069]: DBG: chan_8 <- OPTION lc-messages=fr_FR.UTF-8
Aug 11 22:47:34 gpg-agent[2069]: DBG: chan_8 -> OK
Aug 11 22:47:34 gpg-agent[2069]: DBG: chan_8 <- updatestartuptty
Aug 11 22:47:34 gpg-agent[2069]: DBG: chan_8 -> OK
Aug 11 22:47:34 gpg-agent[2069]: DBG: chan_8 <- [eof]
… and then the key importation fails in the exact same way as before:
I'm not asked for the passphrase and the debug-all logs are the same :(
FWIW I've tried both on GNOME/X.Org and GNOME/Wayland (up-to-date sid).
Cheers,
--
intrigeri
More information about the pkg-gnupg-maint
mailing list