Executing lttng with uid=0 and not being in the tracing group was
setting the wrong default session daemon path in the liblttngctl API.
Also adds two debug output for the session daemon.
Signed-off-by: David Goulet <david.goulet@polymtl.ca>
/* Are we in the tracing group ? */
ret = check_tracing_group(tracing_group);
- if (ret < 0) {
+ if (ret < 0 && getuid() != 0) {
if (sprintf(sessiond_sock_path, DEFAULT_HOME_CLIENT_UNIX_SOCK,
getenv("HOME")) < 0) {
return -ENOMEM;
}
}
+ DBG("Client socket path %s", client_unix_sock_path);
+ DBG("Application socket path %s", apps_unix_sock_path);
+
/* See if daemon already exist. If any of the two
* socket needed by the daemon are present, this test fails
*/