summaryrefslogtreecommitdiff
path: root/src/login/logind.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2016-05-04 18:57:15 +0200
committerSven Eden <yamakuzure@gmx.net>2017-06-16 10:12:58 +0200
commit0fa22a24e08416f3ba2278b9780990e67faf6e30 (patch)
tree53ac90319787af000d2b0b92172a04e402519220 /src/login/logind.h
parentbfd22ee3909a67c139aa2fd9b9a4cecba3dd124d (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_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.
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 986f98ccc..3a9ccb6e5 100644
--- a/src/login/logind.h
+++ b/src/login/logind.h
@@ -162,6 +162,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);