Create all trace directories and files with client user credentials
[lttng-tools.git] / lttng-sessiond / session.h
index fd164007f9048fc46ce9f1d57d10d6a6dd946c5f..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"
@@ -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);
This page took 0.023146 seconds and 4 git commands to generate.