From: Jonathan Rajotte Date: Fri, 18 Sep 2020 20:37:50 +0000 (-0400) Subject: trigger: expose trigger owner uid X-Git-Tag: v2.13.0-rc1~435 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=64eafdf60552bbd7e22fb1c8fc8fc2b42a3cf68b;hp=64eafdf60552bbd7e22fb1c8fc8fc2b42a3cf68b trigger: expose trigger owner uid To facilitate behavior management for the root user and to allow duplicate trigger names across users, enforce the usage of the trigger owner user id. The root user will be able to register and unregister triggers on behalf of other users. The root user will also have visibility on triggers of other users. Only the root user can use the `lttng_trigger_set_owner_uid` function successfully. As indicated in the comments, this function performs a client-side validation steps to catch mis-uses, but this is properly enforced on the sessiond's end in the register/unregister trigger commands. With the future addition of a trigger name (id), the owner id and the name will act as a key tuple allowing identicaly named triggers across users. We plan on exposing the `--user` switch in the upcoming command line (add-trigger, remove-trigger). Signed-off-by: Jonathan Rajotte Signed-off-by: Jérémie Galarneau Change-Id: Ifca3c41b7ffd97b67e16fb80c18472b667cb2f56 ---