chiark / gitweb /
logind: enforce a limit on current user sessions
authorLennart Poettering <lennart@poettering.net>
Wed, 4 May 2016 16:57:15 +0000 (18:57 +0200)
committerSven Eden <yamakuzure@gmx.net>
Fri, 16 Jun 2017 08:12:58 +0000 (10:12 +0200)
commit0fa22a24e08416f3ba2278b9780990e67faf6e30
tree53ac90319787af000d2b0b92172a04e402519220
parentbfd22ee3909a67c139aa2fd9b9a4cecba3dd124d
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_elogind prefixed with "-",
so that the return code of pam_elogind is ignored, and the login attempt
succeeds anyway. On systems like this the session will be created but is not
tracked by elogind.
src/login/logind-dbus.c
src/login/logind.h