]> git.ipfire.org Git - thirdparty/systemd.git/commit
pam-systemd: talk to logind via varlink 35264/head
authorLennart Poettering <lennart@poettering.net>
Mon, 18 Nov 2024 10:25:20 +0000 (11:25 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 15 Jan 2025 10:58:49 +0000 (11:58 +0100)
commit4582f8d7a59d774a92b1da333996766aa9c9be76
tree12bdaa2bba4b8cbb1baf896127c0f1bd78f3d544
parent2baca6c22b2d75b8ba2d0bd8a9e7f4a8579752ed
pam-systemd: talk to logind via varlink

This makes sure we now use Varlink per default as transport for
allocating sessions.

This reduces the time it takes to do one run0 cycle by roughly ~10% on my
completely synthetic test setup (assuming the target user's service
manager is already started)

The D-Bus codepaths are kept in place for two reasons:
* To make upgrades easy
* If the user actually sets resource properties on the PAM session we
  fall back to the D-Bus codepaths, as we currently have no way to
  encode the scope properties in JSON, this is only supported for D-Bus
  serialization.

The latter should be revisited once it is possible to allocate a scope
unit from PID1 via varlink.
src/login/pam_systemd.c