]> git.ipfire.org Git - thirdparty/systemd.git/commit
logind: introduce "user-light" session class
authorLennart Poettering <lennart@poettering.net>
Fri, 10 Jan 2025 08:32:18 +0000 (09:32 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 15 Jan 2025 16:03:21 +0000 (17:03 +0100)
commitcf8f6cd0571a4f474c449d4b1fda1c4192c01824
treeace552c79a93eab71a5829cbc4d663c6188b8768
parenta6ad410ffa5d63647ea9048932b7b459cbe55662
logind: introduce "user-light" session class

This new session class is to "user" what "background" is to
"background-light": it doesn't cause the per-user service manager to
start.

This new session class is now the default if no session class was
provided at session registration time and the following conditions hold:

1. The session is not graphical
2. The user is not a regular user (but not root)

Or in other words root and system users won't get a service manager
started automatically if they go through a PAM session as part of things
like cron or ftp. They will however still get one if they log in
graphically.

This changes behaviour a bit, but hopefully in OK was.

This also makes "background-light" for system users incl. root.

This addresses one of the ideas discussed in #34988.
NEWS
TODO
man/pam_systemd.xml
man/sd_session_is_active.xml
src/login/logind-dbus.c
src/login/logind-session.c
src/login/logind-session.h
src/login/pam_systemd.c
src/shared/varlink-io.systemd.Login.c
test/units/TEST-35-LOGIN.sh