]> git.ipfire.org Git - thirdparty/systemd.git/commit
logind: rework session creation logic, to be more reusable for varlink codepaths
authorLennart Poettering <lennart@poettering.net>
Tue, 19 Nov 2024 21:16:25 +0000 (22:16 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 10 Jan 2025 12:59:56 +0000 (13:59 +0100)
commit19cd2b6d20950b0d917987c339ab4dc505746515
tree0ca2949beed6fb2b02ba178858de1bcc993921c2
parentfa8b70f2c8c57904a75d23837df8d86265b913a6
logind: rework session creation logic, to be more reusable for varlink codepaths

This separates the preparatory checks that generate D-Bus errors from
the code that actually allocates the session. This make the logic easier
to follow and prepares ground so that we can reuse the 2nd part later
when exposing session creation via Varlink.
src/login/logind-dbus.c
src/login/logind-dbus.h