logind: enforce a limit on current user sessions
authorLennart Poettering <lennart@poettering.net>
Wed, 4 May 2016 16:57:15 +0000 (18:57 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 5 May 2016 20:50:09 +0000 (22:50 +0200)
commit183e0738427b83667512276a3e8c10274c0824cc
treecc0267b812b7b5d70694468cc25e51c96c588880
parent37818090c99871577c0cfd8171901eb7e2050be9
logind: enforce a limit on current user sessions

We really should put limits on all resources we manage, hence add one to the
number of concurrent sessions, too. This was previously unbounded, hence set a
relatively high limit of 8K by default.

Note that most PAM setups will actually invoke pam_systemd prefixed with "-",
so that the return code of pam_systemd is ignored, and the login attempt
succeeds anyway. On systems like this the session will be created but is not
tracked by systemd.
man/logind.conf.xml
src/login/logind-dbus.c
src/login/logind-gperf.gperf
src/login/logind.c
src/login/logind.conf.in
src/login/logind.h