Bug#981555: does not appear to respond to DBUS interface anymore

2021-02-03 Thread Simon McVittie
Control: retitle -1 gnome-keyring: unable to connect to D-Bus when using 
dbus-x11
Control: reassign -1 libglib2.0-0 2.66.4-2
Control: severity -1 serious
Control: affects -1 + msmtp gnome-keyring
Control: tags -1 = upstream
Control: tags 981420 = upstream
Control: forcemerge 981420 -1

On Tue, 02 Feb 2021 at 08:19:10 +, Martin Steigerwald wrote:
> I post part of your reply to me personally, cause I accidentally replied
> to you personally, publicly in order to give further information to the
> bug report. I hope you don't mind. I think there is nothing private in
> there.

Sorry, yes, I should have specifically said there was nothing private
in my previous mails regarding this bug.

> After installing
> 
> - libglib2.0-0_2.66.4-3+revert981420targeted_amd64.deb
> - libglib2.0-bin_2.66.4-3+revert981420targeted_amd64.deb
> 
> and restarting GNOME keyring daemon the issue is gone.

OK, I think we can consider this to be the same bug as #981420, for which
I'm going to upload an upstream version of the same change that went
into those test binaries.

> There is no such error message in ~/.xsession-errors, where Plasma
> indeed logs session services output

That doesn't *necessarily* mean anything: unfortunately, warnings and
error messages from D-Bus-activated per-user services on non-systemd
systems generally end up sent to /dev/null. systemd's Journal API can
fix this, but only for systemd systems.

> As for using KWalletManager as you suggested: Well I use it, yet
> Evolution – specifically evolution-data-server package - depends on
> GNOME keyring.

That might be a bug in evolution-data-server's packaging, if it would
work equally well with any o.fd.Secrets implementation - but maybe it
needs something that is specific to gnome-keyring.

(On the other hand, I'm fairly sure Evolution is designed to be used in
a GNOME environment, so this is quite a mixed setup anyway.)

smcv



Bug#981555: does not appear to respond to DBUS interface anymore

2021-02-02 Thread Martin Steigerwald
Dear Simon.

I post part of your reply to me personally, cause I accidentally replied
to you personally, publicly in order to give further information to the
bug report. I hope you don't mind. I think there is nothing private in
there.

Am Montag, dem 01.02.2021 um 14:19 + schrieb Simon McVittie:
> > Hmmm, shall I try downgrading to glib 2.66.4-1 from snapshots?
>
> If that resolves this, that would be a useful data point. No need to
> use snapshots, 2.66.4-1 is still current in bullseye at the moment.
>
> A more informative data point would be to try the test-builds
> described
> in  which
> partially revert only the most relevant change. I would guess that
> with
> the set of packages versioned 2.66.4-3+revert981420targeted, it would
> work again, perhaps with this warning message logged (in your case
> it might be in ~/.xsession-errors, or /dev/null, or wherever else a
> Plasma session on a non-systemd system puts session services' output):
>
>     GLib-GIO: Not suppressing use of DBUS_SESSION_BUS_ADDRESS because
> not setuid, even though AT_SECURE

After installing

- libglib2.0-0_2.66.4-3+revert981420targeted_amd64.deb
- libglib2.0-bin_2.66.4-3+revert981420targeted_amd64.deb

and restarting GNOME keyring daemon the issue is gone.

There is no such error message in ~/.xsession-errors, where Plasma
indeed logs session services output:

% grep "Not suppressing" ~/.xsession-errors

yields no result

Thank you very much again for your detailed answer. If I can do
something else to help you find a solution to this bug, please let me
know.

As for using KWalletManager as you suggested: Well I use it, yet
Evolution – specifically evolution-data-server package - depends on
GNOME keyring.

Best,

Mit freundlichen Grüßen / With kind regards
Martin Steigerwald •
Proact Deutschland GmbH
Trainer
Telefon: +49 911 30999 0 •
Fax: +49 911 30999 99
Südwestpark 43 •
90449 Nürnberg •
Germany
[email protected] •
www.proact.de
Amtsgericht Nürnberg
 •
HRB 18320
Geschäftsführer:
René Schülein
 •
Jonas Hasselberg
 •
Linda Höljö
#ThePowerOfTogether


Bug#981555: does not appear to respond to DBUS interface anymore

2021-02-01 Thread Martin Steigerwald
Resending: I accidentally sent this to Simon directly. Simon nonetheless
kindly replied to me already. I hope I am able to get back to it
tomorrow.


Dear Simon,

Thank you for your detailed reply.

Am Montag, dem 01.02.2021 um 12:47 + schrieb Simon McVittie:
> On Mon, 01 Feb 2021 at 12:06:04 +0100, Martin Steigerwald wrote:
[… Evolution not asking for keyring password anymore …]
> > Since this worked before I do not consider this to be an upstream
> > issue.
> > However also 'gnome-keyring' package does not appear to have been
> > changed
> > recently. So it may be related to the upgrade of a different
> > package.
>
> I think this might be triggered by security hardening in GLib that
> results
> in gnome-keyring-daemon no longer trusting its parent process to
> supply it
> with a DBUS_SESSION_BUS_ADDRESS. See 
> and
> upstream issue .

I see.

> > I am using Runit as PID 1.
>
> Presumably that means you're getting your D-Bus session bus from dbus-
> x11 (dbus-launch), because the recommended implementation
> dbus-user-session requires systemd?

I have dbus-x11 installed, but dbus-user-session is not installed.

> The various consequences of a non-systemd init, not all of which are
> immediately obvious, are not really something that GNOME projects are
> designed to support.

In addition to other reasons that is one reason I use KDE's Plasma. They
kept Systemd support stuff optional so far.

> The reporter of #981420 *is* using systemd, but one theory about why
> their gnome-keyring isn't working is that they might be using dbus-x11
> rather than dbus-user-session. I haven't been able to confirm or
> disprove that theory yet.

Hmmm, shall I try downgrading to glib 2.66.4-1 from snapshots?

> We try to keep this working in Debian, but there's
> a limit to what we can do in that direction: if the underlying 
> system does not meet various design assumptions then sometimes we will
> just have to say "sorry, you don't have the requirements for this".

Well of course I'd like this to continue to work and if it might be
triggered by security hardening in Glib as you pointed out above, it may
not be related to Systemd at all? A "design assumption" and hard
"requirements" are two different things for me. I prefer software that
works without relying on assumptions.

Thanks,


Mit freundlichen Grüßen / With kind regards
Martin Steigerwald •
Proact Deutschland GmbH
Trainer
Telefon: +49 911 30999 0 •
Fax: +49 911 30999 99
Südwestpark 43 •
90449 Nürnberg •
Germany
[email protected] •
www.proact.de
Amtsgericht Nürnberg
 •
HRB 18320
Geschäftsführer:
René Schülein
 •
Jonas Hasselberg
 •
Linda Höljö
#ThePowerOfTogether


Bug#981555: does not appear to respond to DBUS interface anymore

2021-02-01 Thread Simon McVittie
On Mon, 01 Feb 2021 at 12:06:04 +0100, Martin Steigerwald wrote:
> Since this work week Evolution on my laptop does not ask for GNOME keyring
> password anymore. Instead after some kind of a timeout it directly asks
> for the password of the connection.
...
> Since this worked before I do not consider this to be an upstream issue.
> However also 'gnome-keyring' package does not appear to have been changed
> recently. So it may be related to the upgrade of a different package.

I think this might be triggered by security hardening in GLib that results
in gnome-keyring-daemon no longer trusting its parent process to supply it
with a DBUS_SESSION_BUS_ADDRESS. See  and
upstream issue .

> I am using Runit as PID 1.

Presumably that means you're getting your D-Bus session bus from dbus-x11
(dbus-launch), because the recommended implementation dbus-user-session
requires systemd?

The reporter of #981420 *is* using systemd, but one theory about why
their gnome-keyring isn't working is that they might be using dbus-x11
rather than dbus-user-session. I haven't been able to confirm or disprove
that theory yet.

The various consequences of a non-systemd init, not all of which are
immediately obvious, are not really something that GNOME projects are
designed to support. We try to keep this working in Debian, but there's
a limit to what we can do in that direction: if the underlying system
does not meet various design assumptions then sometimes we will just
have to say "sorry, you don't have the requirements for this".

smcv



Bug#981555: does not appear to respond to DBUS interface anymore

2021-02-01 Thread Martin Steigerwald
Am Montag, dem 01.02.2021 um 12:06 +0100 schrieb Martin Steigerwald:
> Kernel: Linux 5.11.0-rc6-tp520 (SMP w/4 CPU threads; PREEMPT)

Just to make sure I retested this with linux-image-5.10.0-2-amd64
5.10.9-1 and got back the same result as reported.

Best,

Mit freundlichen Grüßen / With kind regards
Martin Steigerwald •
Proact Deutschland GmbH
Trainer
Telefon: +49 911 30999 0 •
Fax: +49 911 30999 99
Südwestpark 43 •
90449 Nürnberg •
Germany
[email protected] •
www.proact.de
Amtsgericht Nürnberg
 •
HRB 18320
Geschäftsführer:
René Schülein
 •
Jonas Hasselberg
 •
Linda Höljö
#ThePowerOfTogether


Bug#981555: does not appear to respond to DBUS interface anymore

2021-02-01 Thread Martin Steigerwald
Package: gnome-keyring
Version: 3.36.0-1
Severity: important

Dear maintainers,

Since this work week Evolution on my laptop does not ask for GNOME keyring
password anymore. Instead after some kind of a timeout it directly asks
for the password of the connection.

It does so for retrieving mails, for sending mails, for calendar and 
addressbook access. I am using Evolution EWS with Office 365.

Since this worked before I do not consider this to be an upstream issue.
However also 'gnome-keyring' package does not appear to have been changed
recently. So it may be related to the upgrade of a different package.

I do see

kdeinit5: Got EXEC_NEW 'dbus-send' from launcher.
kdeinit5: preparing to launch 'libkdeinit5_dbus-send'
Could not open dbus-send using a library: Cannot load library 
libkdeinit5_dbus-send: (libkdeinit5_dbus-send: Kann die Shared-Object-Datei 
nicht öffnen: Datei oder Verzeichnis nicht gefunden)
kdeinit5: PID 13520 terminated.

in ~/.xsession-errors which may be related.

However I did not find 'libkdeinit5_dbus-send' anywhere with 'apt-file search'.

GNOME Keyring daemon, which to my understanding provides Secrets Services
DBUS API, is running, excerpt from 'ps aux':

someuser   13491  0.0  0.0  15756  4984 ?SL   08:52   0:00 
/usr/bin/gnome-keyring-daemon --daemonize --login

However also 'qdbus' reports that the DBUS API is not accessible:

% qdbus org.freedesktop.secrets 
Error: org.freedesktop.DBus.Error.NoReply
Did not receive a reply. Possible causes include: the remote application did 
not send a reply, the message bus security policy blocked the reply, the reply 
timeout expired, or the network connection was broken.

It does not even seem to exist:

% qdbus | grep secrets
[… nothing …]

However also if started manually GNOME Keyring does not report an error:

% /usr/bin/gnome-keyring-daemon --login
[… keeps running, no output, even after Evolution failing to connect DBUS
API …]

I am using Runit as PID 1. This has not been an issue before.

Thanks,
Martin

-- System Information:
Debian Release: bullseye/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'unstable'), (200, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.11.0-rc6-tp520 (SMP w/4 CPU threads; PREEMPT)
Kernel taint flags: TAINT_WARN, TAINT_OOT_MODULE
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: runit (via /run/runit.stopit)
LSM: AppArmor: enabled

Versions of packages gnome-keyring depends on:
ii  dbus-x11 [dbus-session-bus]  1.12.20-1
ii  dconf-gsettings-backend [gsettings-backend]  0.38.0-1
ii  gcr  3.38.1-1
ii  libc62.31-9
ii  libcap-ng0   0.7.9-2.2+b1
ii  libcap2-bin  1:2.44-1
ii  libgck-1-0   3.38.1-1
ii  libgcr-base-3-1  3.38.1-1
ii  libgcrypt20  1.8.7-2
ii  libglib2.0-0 2.66.4-3
ii  p11-kit  0.23.22-1
ii  pinentry-gnome3  1.1.0-4

Versions of packages gnome-keyring recommends:
ii  gnome-keyring-pkcs11  3.36.0-1
ii  libpam-gnome-keyring  3.36.0-1

gnome-keyring suggests no packages.

-- debconf-show failed