[Pkg-utopia-maintainers] Bug#1076728: elogind: privileged operation with polkit fails

Simon McVittie smcv at debian.org
Tue Dec 17 19:52:10 GMT 2024


On Tue, 17 Dec 2024 at 19:15:26 +0000, Andrew Bower wrote:
> It looks like the agent (the legacy gnome one) fails to start when
> launched by the DE, as does lxagent if substituted:
> 
>   Unable to determine the session we are in: No session for pid 24111

This could be an elogind problem. It indicates that
polkit_unix_session_new_for_process_sync() is failing with that error.

"No session for pid %d" probably means that
polkit_unix_session_initable_init() in src:policykit-1
src/polkit/polkitunixsession-systemd.c is failing, which probably means
that:

1. sd_pid_get_session() was not able to associate pid 24111 with a login
   session; and
2. either sd_pid_get_owner_uid() failed to determine the uid of pid 24111,
   or sd_uid_get_display() was unable to find a graphical session for
   that uid

Those are libsystemd functions that communicate with systemd-logind,
or with elogind on elogind systems, so they seem like something that
would be valuable for elogind maintainers to investigate.

    smcv



More information about the Pkg-utopia-maintainers mailing list