summaryrefslogtreecommitdiff
path: root/src/login/logind.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2016-05-04 19:40:05 +0200
committerLennart Poettering <lennart@poettering.net>2016-05-05 22:50:09 +0200
commitc5a11ae268cf4188caf74d1acfd506a606e85967 (patch)
treef3741fbf902d936452fdc83954b4f8a19b06be31 /src/login/logind.h
parent6d97d3c648e590fe05a5fd12d06e0ddb9dc9da2f (diff)
logind: enforce a limit on inhibitors we hand out
For similar reasons as the recent addition of a limit on sessions. Note that we don't enforce a limit on inhibitors per-user currently, but there's an implicit one, since each inhibitor takes up one fd, and fds are limited via RLIMIT_NOFILE, and the limit on the number of processes per user.
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 23c3e2963a..90431eb4b0 100644
--- a/src/login/logind.h
+++ b/src/login/logind.h
@@ -134,6 +134,7 @@ struct Manager {
size_t runtime_dir_size;
uint64_t user_tasks_max;
uint64_t sessions_max;
+ uint64_t inhibitors_max;
};
int manager_add_device(Manager *m, const char *sysfs, bool master, Device **_device);