Keep track of FD used for UST applications (v2)
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 20 Mar 2012 18:53:07 +0000 (14:53 -0400)
committerDavid Goulet <dgoulet@ev0ke.net>
Tue, 20 Mar 2012 18:53:35 +0000 (14:53 -0400)
commit4063050c0e90b27d34ee8de570b049cc076119a4
tree1be832fe06a27282c545e8f6e5696093e60f129c
parent0c687325f18ccb6950cd6a8a9665f33a6890d5a1
Keep track of FD used for UST applications (v2)

Allow to keep 25% of file descriptors reserved for commands/kernel
tracing/internal communication within the sessiond by limiting
applications to 75% of the available file descriptors. This ensures
traced applications cannot cause a sessiond denial of service.

Changelog since v1:
- Add missing fd-limit.h

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
src/bin/lttng-sessiond/Makefile.am
src/bin/lttng-sessiond/fd-limit.c [new file with mode: 0644]
src/bin/lttng-sessiond/fd-limit.h [new file with mode: 0644]
src/bin/lttng-sessiond/main.c
src/bin/lttng-sessiond/ust-app.c
This page took 0.027043 seconds and 5 git commands to generate.