]> git.ipfire.org Git - thirdparty/systemd.git/commit
logind: rework the special casing we give root's sessions 30731/head
authorLennart Poettering <lennart@poettering.net>
Mon, 27 Nov 2023 17:19:50 +0000 (18:19 +0100)
committerLennart Poettering <lennart@poettering.net>
Thu, 4 Jan 2024 15:11:16 +0000 (16:11 +0100)
commit59afe07c217c73e3c7c19fb06aef2ff7bf609fd2
tree148333746d47b0133b5eca12770416953af45125
parent29e1857b689ebba65ff6870730866f068f9fcf70
logind: rework the special casing we give root's sessions

Let's add an explicit session class "user-early" for this, so that
change of behaviour on logind is primarily bound to the "class"
property, and not some explicit root checks. This has the benefit that
we can be more fine grained with implying this class: only do so for tty
sessions, not others.
src/login/logind-session.c
src/login/logind-session.h
src/login/logind-user.c
src/login/pam_systemd.c