X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=lttng-sessiond%2Fsession.h;h=6264e14ac4f0b6430fd06f9960e0c9915e539fa2;hp=fd164007f9048fc46ce9f1d57d10d6a6dd946c5f;hb=6df2e2c977b698cc6b8f15c90b649516674028f9;hpb=a991f516ac2783c833ebbc6ac0ac3c0e4ca71371 diff --git a/lttng-sessiond/session.h b/lttng-sessiond/session.h index fd164007f..6264e14ac 100644 --- a/lttng-sessiond/session.h +++ b/lttng-sessiond/session.h @@ -20,6 +20,7 @@ #define _LTT_SESSION_H #include +#include #include #include "trace-kernel.h" @@ -69,10 +70,13 @@ struct ltt_session { struct cds_list_head list; int enabled; /* enabled/started flag */ int id; /* session unique identifier */ + /* UID/GID of the user owning the session */ + uid_t uid; + gid_t gid; }; /* Prototypes */ -int session_create(char *name, char *path); +int session_create(char *name, char *path, uid_t uid, gid_t gid); int session_destroy(struct ltt_session *session); void session_lock(struct ltt_session *session);