X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=include%2Flttng%2Ftrigger%2Ftrigger-internal.h;h=a554a31e536131a16d48f4e00088297f6ffe69d9;hp=4b031137c6473153fc005321bb4a226c4c51fb3f;hb=64eafdf60552bbd7e22fb1c8fc8fc2b42a3cf68b;hpb=0db0f8e075e3790a2707736d2a4d086b123f3160 diff --git a/include/lttng/trigger/trigger-internal.h b/include/lttng/trigger/trigger-internal.h index 4b031137c..a554a31e5 100644 --- a/include/lttng/trigger/trigger-internal.h +++ b/include/lttng/trigger/trigger-internal.h @@ -26,12 +26,18 @@ struct lttng_trigger { struct lttng_condition *condition; struct lttng_action *action; - LTTNG_OPTIONAL(struct lttng_credentials) creds; + /* For now only the uid portion of the credentials is used. */ + struct lttng_credentials creds; }; struct lttng_trigger_comm { /* length excludes its own length. */ uint32_t length; + /* + * Credentials, only the uid portion is used for now. + * Used as an override when desired by the root user. + */ + uint64_t uid; /* A condition and action object follow. */ char payload[]; } LTTNG_PACKED; @@ -66,8 +72,7 @@ const struct lttng_credentials *lttng_trigger_get_credentials( const struct lttng_trigger *trigger); LTTNG_HIDDEN -void lttng_trigger_set_credentials( - struct lttng_trigger *trigger, +void lttng_trigger_set_credentials(struct lttng_trigger *trigger, const struct lttng_credentials *creds); #endif /* LTTNG_TRIGGER_INTERNAL_H */