summaryrefslogtreecommitdiff
path: root/src/login/logind.conf.in
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2016-05-04 18:57:15 +0200
committerLennart Poettering <lennart@poettering.net>2016-05-05 22:50:09 +0200
commit183e0738427b83667512276a3e8c10274c0824cc (patch)
treecc0267b812b7b5d70694468cc25e51c96c588880 /src/login/logind.conf.in
parent37818090c99871577c0cfd8171901eb7e2050be9 (diff)
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.
Diffstat (limited to 'src/login/logind.conf.in')
-rw-r--r--src/login/logind.conf.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/login/logind.conf.in b/src/login/logind.conf.in
index 3c96def45d..6284218625 100644
--- a/src/login/logind.conf.in
+++ b/src/login/logind.conf.in
@@ -32,4 +32,5 @@
#IdleActionSec=30min
#RuntimeDirectorySize=10%
#RemoveIPC=yes
+#SessionsMax=8192
#UserTasksMax=12288