vulkan: Use secure_getenv for trigger files
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 7ea96ff75b
)
This commit is contained in:

committed by
Eric Engestrom

parent
91ebaf1611
commit
9b9ba6084b
@@ -94,7 +94,7 @@
|
||||
"description": "vulkan: Use secure_getenv for trigger files",
|
||||
"nominated": true,
|
||||
"nomination_type": 0,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null,
|
||||
"notes": null
|
||||
|
@@ -199,7 +199,7 @@ vk_instance_init(struct vk_instance *instance,
|
||||
|
||||
instance->trace_mode = parse_debug_string(getenv("MESA_VK_TRACE"), trace_options);
|
||||
instance->trace_frame = (uint32_t)debug_get_num_option("MESA_VK_TRACE_FRAME", 0xFFFFFFFF);
|
||||
instance->trace_trigger_file = getenv("MESA_VK_TRACE_TRIGGER");
|
||||
instance->trace_trigger_file = secure_getenv("MESA_VK_TRACE_TRIGGER");
|
||||
|
||||
glsl_type_singleton_init_or_ref();
|
||||
|
||||
|
Reference in New Issue
Block a user