Fix: notification: client with uid != trigger uid assert on gid check
[lttng-tools.git] / src / bin / lttng-sessiond / notification-thread-events.c
index 4623ef38c463edb281a6eaaaedfdb8521dfb4db6..827cf2c1459f5ee4cb683ac3fd5b0699ab5d9b82 100644 (file)
@@ -1152,6 +1152,7 @@ int notification_thread_client_subscribe(struct notification_client *client,
                        WARN("[notification-thread] Evaluation of a condition on client subscription failed, aborting.");
                        ret = -1;
                        free(client_list_element);
+                       pthread_mutex_unlock(&client_list->lock);
                        goto end;
                }
        }
@@ -4334,7 +4335,7 @@ int notification_client_list_send_evaluation(
                        }
                }
 
-               if (client->uid != lttng_credentials_get_uid(trigger_creds) && client->gid != lttng_credentials_get_gid(trigger_creds)) {
+               if (client->uid != lttng_credentials_get_uid(trigger_creds)) {
                        DBG("[notification-thread] Skipping client at it does not have the permission to receive notification for this trigger");
                        goto skip_client;
                }
This page took 0.024801 seconds and 4 git commands to generate.