[pkg-gnupg-maint] Bug#842334: Bug#842334: Needs an X display to run?
Julien Puydt
julien.puydt at laposte.net
Fri Oct 28 17:39:26 UTC 2016
Hi,
On 28/10/2016 18:55, Daniel Kahn Gillmor wrote:
> Control: tags 842334 + moreinfo unreproducible
>
> Hi Julien--
>
> On Fri 2016-10-28 03:47:24 -0400, Julien Puydt wrote:
>> I hadn't signed a Debian package since a few days, and it's now failing
>> because I do remote work on a host without X access. The last time I
>> worked on Debian packaging there was a curses window showing up asking
>> for the password to the key.
>
> That should still be the case. Can you describe the situation you're in
> in more detail? I can make a signature using a curses window for
> passphrase prompting.
I'm using mosh to connect to a tmux session. In that tmux session, there
is a window with a "TMUX= ssh-agent tmux", where my ~/.ssh/debian key is
ssh-add-ed. This is the terminal I use to work on Debian packaging, and
in particular, to run "gbp buildpackage -S -kdebian", which until
recently showed me a curses window.
> In particular answers to any or all of the questions below would help me
> understand your use case:
>
> * what versions of pinentry do you have installed?
pinentry-gnome3, 0.9.7-6
> * do you have dbus-user-session installed?
Yes, version 1.10.12-1.
> * which version of pinentry is the default pinentry?
It's pinentry-gnome3, from src:pinentry version 0.9.7-6, as above : I
don't think I have another one.
> * is there a concurrent graphical (X11) session running for the user
> account that you're using?
When there is or has been such a session, then I get an X window (even
in lxdm's login screen after logout : that point is a security issue!).
If not I get an error trying to sign, but no curses window.
> * how are you connecting to the remote host?
See above : mosh. But I tried with slogin and obtained the same results.
> * what session management governs your non-X session on the remote host?
See above : tmux or direct slogin give me the same behaviour.
> If you've got a running dbus session (whether you have dbus-user-session
> or not), and you're using pinentry-gnome3, can you try rebuilding it
> with the patch i mentioned in https://bugs.debian.org/841909 and let
> me know how that works?
If I kill dbus instances running as my user, then I get an error, so
indeed it's the fact that there's a still-running dbus that makes it
possible to display an X window . And that is already wrong, because I'm
not supposed to access the lxdm session screen as a user.
I took your 0011 patch and added it to the package, then installed it :
I now get the curses window... even when I run a gpg command inside an
xterm within a lxsession, in which case I would have expected an X11 window.
I hope that helps,
Snark on #debian-science
More information about the pkg-gnupg-maint
mailing list