From ee98f686b2f504fe08ed0af5baa30b220b14b34d Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Thu, 8 Aug 2019 13:53:19 -0400 Subject: [PATCH] Fix: destroy command: send credentials with command MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Not sending credentials triggers spurious destroy command failure (EPERM) because session daemon receives "nobody.nobody" credentials. Signed-off-by: Mathieu Desnoyers Signed-off-by: Jérémie Galarneau --- src/lib/lttng-ctl/destruction-handle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/lttng-ctl/destruction-handle.c b/src/lib/lttng-ctl/destruction-handle.c index e22deaa93..b6a70bac6 100644 --- a/src/lib/lttng-ctl/destruction-handle.c +++ b/src/lib/lttng-ctl/destruction-handle.c @@ -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; -- 2.34.1