Files
systemd/src
Luca Boccassi eb56b564a0 logind: do not fail creating a session when request is not from a unit
When running inside an LXC container the 'su' process will not be part of
any unit or slice.

manager_get_user_by_pid() which was used until v255 (included) does not fail
if it cannot find a unit/slice, but simply returns 'not found'. Do the same
in manager_get_session_by_pidref().

This was not detected as Semaphore CI does not reboot the testbed before
the logind test, so the session is started by the old logind from the base
distro, instead of the one being tested.

Follow-up for 8494f562c8
Follow-up for 5099a50d43

Fixes https://github.com/systemd/systemd/issues/32929
2024-05-20 13:14:50 +01:00
..
2024-04-18 17:39:34 +02:00
2024-05-08 15:13:14 +02:00
2024-04-25 17:06:43 +02:00
2024-04-18 17:39:34 +02:00
2024-04-18 17:39:34 +02:00