Elogind v239.1 Devuan/Debian combined source
Peter Maydell
pmaydell at chiark.greenend.org.uk
Sun Nov 11 11:11:37 GMT 2018
Mark Hindley wrote:
>On Sat, Nov 10, 2018 at 11:01:46PM +0000, Peter Maydell wrote:
>> (12) test startx: works ok. the 'restart' menu option just stops the x
>> session, but maybe that's intended
>
>I think this might be related to polkit integration not working. See below.
Sounds plausible.
>> (13) apt install lightdm
>> (14) reboot
>> (15) lightdm still works as much as it did with my/iwj's earlier elogind
>> packaging: login and the user session are fine, but the power off/reboot/etc
>> menu entries at the login screen are all greyed out.
>
>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...
>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).
>sid> pkaction --verbose --action-id org.freedesktop.login1.power-off
>org.freedesktop.login1.power-off:
> description: Power off the system
> message: Authentication is required for powering off the system.
> vendor: The systemd Project
> vendor_url: http://www.freedesktop.org/wiki/Software/systemd
> icon:
> implicit any: auth_admin_keep
> implicit inactive: auth_admin_keep
> 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.
thanks
-- PMM
More information about the Debian-init-diversity
mailing list