Create all trace directories and files with client user credentials
[lttng-tools.git] / lttng-sessiond / session.h
index 2d077a4bc2e60e3d1cd871ae4d1bb60ac4595344..6264e14ac4f0b6430fd06f9960e0c9915e539fa2 100644 (file)
@@ -20,6 +20,7 @@
 #define _LTT_SESSION_H
 
 #include <pthread.h>
+#include <unistd.h>
 #include <urcu/list.h>
 
 #include "trace-kernel.h"
@@ -68,10 +69,14 @@ struct ltt_session {
        pthread_mutex_t lock;
        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);
This page took 0.023283 seconds and 4 git commands to generate.