Fix: destroy command: send credentials with command
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 8 Aug 2019 17:53:19 +0000 (13:53 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 9 Aug 2019 15:28:43 +0000 (11:28 -0400)
Not sending credentials triggers spurious destroy command failure
(EPERM) because session daemon receives "nobody.nobody" credentials.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/lib/lttng-ctl/destruction-handle.c

index e22deaa930ef86fd74f25f58df6d156d39591aec..b6a70bac6803cf852933ffb87d25398498a86b57 100644 (file)
@@ -405,7 +405,7 @@ enum lttng_error_code lttng_destroy_session_ext(const char *session_name,
                goto error;
        }
 
-       comm_ret = lttcomm_send_unix_sock(sessiond_socket, &lsm, sizeof(lsm));
+       comm_ret = lttcomm_send_creds_unix_sock(sessiond_socket, &lsm, sizeof(lsm));
        if (comm_ret < 0) {
                ret_code = LTTNG_ERR_FATAL;
                goto error;
This page took 0.025984 seconds and 4 git commands to generate.