mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 17:58:26 +02:00
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:
parent
1aab9bc3f0
commit
bbe9e29fd4
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue