2 * Copyright (C) 2017 Jérémie Galarneau <jeremie.galarneau@efficios.com>
4 * SPDX-License-Identifier: LGPL-2.1-only
8 #ifndef LTTNG_ENDPOINT_H
9 #define LTTNG_ENDPOINT_H
16 * Default LTTng session daemon notification endpoint singleton.
18 * For use during the creation of a notification channel. This endpoint
19 * implements the following policy to connect to a session daemon's
20 * notification delivery channel:
21 * - If the caller is root or part of the tracing group:
22 * - Attempt to connect to the "root" (global) session daemon,
23 * - Fallback to the session daemon running as the caller's user.
24 * - Otherwise (caller is an unpriviliged user):
25 * - Attempt to connect to the session daemon running as the caller's user.
27 extern struct lttng_endpoint
*lttng_session_daemon_notification_endpoint
;
30 * Default LTTng session daemon command endpoint singleton.
32 * For use as part of the invocation of a command. This endpoint
33 * implements the following policy to connect to a session daemon's
35 * - If the caller is root or part of the tracing group:
36 * - Attempt to connect to the "root" (global) session daemon,
37 * - Fallback to the session daemon running as the caller's user.
38 * - Otherwise (caller is an unpriviliged user):
39 * - Attempt to connect to the session daemon running as the caller's user.
41 extern struct lttng_endpoint
*lttng_session_daemon_command_endpoint
;
47 #endif /* LTTNG_ENDPOINT_H */