Bug#817998: /lib/x86_64-linux-gnu/libsystemd.so.0: sd_pid_get_session incorrectly(?) returning -ENXIO (sesion does not exist)

Sam Morris sam at robots.org.uk
Wed Apr 13 13:13:44 UTC 2016


On Wed, 2016-04-13 at 14:05 +0100, Sam Morris wrote:
> On Tue, 2016-04-12 at 19:07 +0100, Simon McVittie wrote:
> > 
> > On Sun, 13 Mar 2016 at 09:47:43 +0000, Sam Morris wrote:
> > > 
> > > 
> > > This is caused by gnome-terminal's design of spawning all child
> > > processes via gnome-terminal-server which is spawned from the
> > > user's dbus session.
> > > 
> > > For a 'fun' reproduction, launch nm-connection-editor from gnome-
> > > terminal and try to figure out why it doesn't work. :)
> > This has been a problem in the past, but your reproducer works fine for me
> > (under GNOME Shell, which among its other functions acts as the polkit
> > agent). We fixed several issues related to this in polkit and udisks2
> > shortly after I introduced dbus-user-session.

> Ok, now I'm lost. At first I assumed that this worked for you because
> you had policykit-1 from experimental installed, including the fix for
> #779988; however I just noticed that this patch was backported to the
> version in testing, and so should already be working on my system.

Scratch that, I just figured it out. Although I had policykit-1 from
testing installed, libpolkit-backend-1-0 from stable was still
installed. After upgrading that too, and restarting polkitd.service,
the new code with the fix is used and everything works fine!

Perhaps polkit-1 could be made to depend on the exact ${binary:Version}
of libpolkit-backend-1-0 to prevent this kind of version skew from
happening again.

Anyway, many thanks for your help!

-- 
Sam Morris <https://robots.org.uk/>
CAAA AA1A CA69 A83A 892B  1855 D20B 4202 5CDA 27B9

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: This is a digitally signed message part
URL: <http://lists.alioth.debian.org/pipermail/pkg-gnome-maintainers/attachments/20160413/0a77d72d/attachment-0001.sig>


More information about the pkg-gnome-maintainers mailing list