X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fsession.h;h=5ff20ad412eea13c1cdde2e0aa4c6e9202d37399;hb=670a26e4165562ab2dc5a16b9941f942e4f30996;hp=34e51fe5a85850445e126453c3fd869c0e4d4790;hpb=04ed9e10dfa0b3c88d4a7abe9fa59b8e03b7e49a;p=lttng-tools.git diff --git a/src/bin/lttng-sessiond/session.h b/src/bin/lttng-sessiond/session.h index 34e51fe5a..5ff20ad41 100644 --- a/src/bin/lttng-sessiond/session.h +++ b/src/bin/lttng-sessiond/session.h @@ -68,7 +68,7 @@ struct ltt_session { char name[NAME_MAX]; bool has_auto_generated_name; bool name_contains_creation_time; - char hostname[HOST_NAME_MAX]; /* Local hostname. */ + char hostname[LTTNG_HOST_NAME_MAX]; /* Local hostname. */ /* Path of the last closed chunk. */ char last_chunk_path[LTTNG_PATH_MAX]; time_t creation_time; @@ -206,7 +206,7 @@ void session_unlock(struct ltt_session *session); * also used as a multi-session lock when synchronizing newly-registered * 'user space tracer' and 'agent' applications. * - * In other words, it prevents session configurations from changing while they + * In other words, it prevents tracer configurations from changing while they * are being transmitted to the various applications. */ void session_lock_list(void); @@ -240,7 +240,7 @@ struct ltt_session *session_find_by_id(uint64_t id); struct ltt_session_list *session_get_list(void); void session_list_wait_empty(void); -int session_access_ok(struct ltt_session *session, uid_t uid, gid_t gid); +bool session_access_ok(struct ltt_session *session, uid_t uid); int session_reset_rotation_state(struct ltt_session *session, enum lttng_rotation_state result);