chiark / gitweb /
logind: enforce a limit on inhibitors we hand out
authorLennart Poettering <lennart@poettering.net>
Wed, 4 May 2016 17:40:05 +0000 (19:40 +0200)
committerSven Eden <yamakuzure@gmx.net>
Fri, 16 Jun 2017 08:12:58 +0000 (10:12 +0200)
commitad0ff86c7c90c3d652edb7c81ebd3f07f70a9a07
treee2337c531abe3c1f9940dce1235e898cc54f2333
parent3b85f87c5c282176a343a4c78dce3350c43e4c28
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.
src/login/logind-dbus.c
src/login/logind.h