Elogind v239.1 Devuan/Debian combined source

Mark Hindley mark at hindley.org.uk
Sun Nov 11 11:45:10 GMT 2018


On Sun, Nov 11, 2018 at 11:11:37AM +0000, Peter Maydell wrote:
> >Installing polkit made those available for me, although they still only produce
> >a logout rather than reboot. But it is another step!
> 
> What extra packages do I need, though? I ended up with
> mate-polkit, mate-polkit-common, libpolkit-gobject-1-0, libpolkit-backend-1-0
> and libpolkit-agent-1-0 all installed...

policykit-1, for polkitd I think.

> >There is still something not right with the polkit/elogind pid to session
> >matching that I can't track down.
> 
> I wonder if this is two bits of code disagreeing about the cgroups
> arrangement of PIDs to identify sessions (eg something in eg libsystemd
> assuming the arrangement is the newer-systemd setup -- just guessing).

Yes, I considered that yesterday and recompiled elogind to default to
cgroups2. I still counldn't get it to work.

> >  implicit active:   yes
> >  annotation:        org.freedesktop.policykit.imply -> org.freedesktop.login1.set-wall-message
> >sid> loginctl show-session $XDG_SESSION_ID -p Active
> >Active=yes
> >
> >Which both seem OK. But then this fails
> >
> >sid> pkcheck --action-id org.freedesktop.login1.power-off -u --process $$
> >polkit\56retains_authorization_after_challenge=1
> >Authorization requires authentication and -u wasn't passed.
> 
> I get the same result as you for the first two commands, but the second
> just prints:
> $ pkcheck --action-id org.freedesktop.login1.power-off -u --process $$
> org.freedesktop.login1.power-off
> 
> and nothing happens.

I think that is the missing polkitd, as above.

I am recompiling policykit for elogind at the moment. It compiles well, but I
keep getting it falling back to ConsoleKit!!!!

Small steps.

Mark




More information about the Debian-init-diversity mailing list