Move file creation/unlink from liblttng-ust-ctl to consumerd
[lttng-tools.git] / src / bin / lttng-sessiond / ust-registry.h
index a22009efa996263cf9a17b2fe08941b5a088f92a..77d4d919518fa1a9cb2eb71eabd4f0ed85e9d108 100644 (file)
@@ -67,6 +67,7 @@ struct ust_registry_session {
        /* Length of bytes sent to the consumer. */
        size_t metadata_len_sent;
 
+       char root_shm_path[PATH_MAX];
        char shm_path[PATH_MAX];
        char metadata_path[PATH_MAX];
        int metadata_fd;        /* file-backed metadata FD */
@@ -86,6 +87,10 @@ struct ust_registry_session {
         * deletes its sessions.
         */
        unsigned int metadata_closed;
+
+       /* User and group owning the session. */
+       uid_t uid;
+       gid_t gid;
 };
 
 struct ust_registry_channel {
@@ -231,6 +236,7 @@ int ust_registry_session_init(struct ust_registry_session **sessionp,
                int byte_order,
                uint32_t major,
                uint32_t minor,
+               const char *root_shm_path,
                const char *shm_path,
                uid_t euid,
                gid_t egid);
This page took 0.025806 seconds and 4 git commands to generate.