2 * Copyright (C) 2019 Jérémie Galarneau <jeremie.galarneau@efficios.com>
4 * SPDX-License-Identifier: GPL-2.0-only
8 #ifndef LTTNG_CREDENTIALS_H
9 #define LTTNG_CREDENTIALS_H
11 #include <sys/types.h>
17 struct lttng_credentials
{
18 LTTNG_OPTIONAL(uid_t
) uid
;
19 LTTNG_OPTIONAL(gid_t
) gid
;
23 uid_t
lttng_credentials_get_uid(const struct lttng_credentials
*creds
);
26 gid_t
lttng_credentials_get_gid(const struct lttng_credentials
*creds
);
29 bool lttng_credentials_is_equal_uid(const struct lttng_credentials
*a
,
30 const struct lttng_credentials
*b
);
33 bool lttng_credentials_is_equal_gid(const struct lttng_credentials
*a
,
34 const struct lttng_credentials
*b
);
37 bool lttng_credentials_is_equal(const struct lttng_credentials
*a
,
38 const struct lttng_credentials
*b
);
40 #endif /* LTTNG_CREDENTIALS_H */
This page took 0.029572 seconds and 4 git commands to generate.