aux/trace: Guard triggers behind __normal_user

Reviewed-by: Eric Engestrom <eric@igalia.com>
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27381>
(cherry picked from commit f3b892b74a)
This commit is contained in:
Friedrich Vock 2024-01-30 15:50:35 +01:00 committed by Eric Engestrom
parent 36cad96d34
commit e61743b04c
2 changed files with 2 additions and 2 deletions

View file

@ -84,7 +84,7 @@
"description": "aux/trace: Guard triggers behind __normal_user",
"nominated": true,
"nomination_type": 0,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null,
"notes": null

View file

@ -284,7 +284,7 @@ trace_dump_trace_begin(void)
atexit(trace_dump_trace_close);
const char *trigger = debug_get_option("GALLIUM_TRACE_TRIGGER", NULL);
if (trigger) {
if (trigger && __normal_user()) {
trigger_filename = strdup(trigger);
trigger_active = false;
} else