Create all trace directories and files with client user credentials
[lttng-tools.git] / lttng-sessiond / trace-ust.h
index e834d2f6e1d0c1391922b7a2c6552953cab552f8..5a6cade9ab7fb1c19e31a202ff26bcdd984a297d 100644 (file)
@@ -99,7 +99,7 @@ struct ltt_ust_domain_exec {
 
 /* UST session */
 struct ltt_ust_session {
-       int uid;   /* Unique identifier of session */
+       int id;    /* Unique identifier of session */
        int start_trace;
        char pathname[PATH_MAX];
        struct ltt_ust_domain_global domain_global;
@@ -110,6 +110,9 @@ struct ltt_ust_session {
         */
        struct cds_lfht *domain_pid;
        struct cds_lfht *domain_exec;
+       /* UID/GID of the user owning the session */
+       uid_t uid;
+       gid_t gid;
 };
 
 #ifdef HAVE_LIBLTTNG_UST_CTL
@@ -125,7 +128,7 @@ struct ltt_ust_channel *trace_ust_find_channel_by_name(struct cds_lfht *ht,
 /*
  * Create functions malloc() the data structure.
  */
-struct ltt_ust_session *trace_ust_create_session(char *path, unsigned int uid,
+struct ltt_ust_session *trace_ust_create_session(char *path, int session_id,
                struct lttng_domain *domain);
 struct ltt_ust_channel *trace_ust_create_channel(struct lttng_channel *attr,
                char *path);
This page took 0.023034 seconds and 4 git commands to generate.