summaryrefslogtreecommitdiff
path: root/src/login/logind.h
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.h
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.h')
-rw-r--r--src/login/logind.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/login/logind.h b/src/login/logind.h
index 6748af3c07..23c3e2963a 100644
--- a/src/login/logind.h
+++ b/src/login/logind.h
@@ -133,6 +133,7 @@ struct Manager {
size_t runtime_dir_size;
uint64_t user_tasks_max;
+ uint64_t sessions_max;
};
int manager_add_device(Manager *m, const char *sysfs, bool master, Device **_device);