summaryrefslogtreecommitdiff
path: root/loader/loader.c
diff options
context:
space:
mode:
authorjuan-lunarg <juan@lunarg.com>2023-05-26 11:42:53 -0600
committerJuan Ramos <114601453+juan-lunarg@users.noreply.github.com>2023-05-26 12:26:18 -0600
commit143389511a3a8a71f49bc768c99776cb18cef256 (patch)
tree9f008e6c4225f5b96130b681227855e63da1d71c /loader/loader.c
parentb95d065ec567f862ab5baa85ab99ecb1f8979fbc (diff)
downloadVulkan-Loader-143389511a3a8a71f49bc768c99776cb18cef256.tar.gz
Vulkan-Loader-143389511a3a8a71f49bc768c99776cb18cef256.tar.bz2
Vulkan-Loader-143389511a3a8a71f49bc768c99776cb18cef256.zip
LOADER_USE_UNSAFE_FILE_SEARCH
Make LOADER_USE_UNSAFE_FILE_SEARCH a CMake option. Allows validation layers to disable safe search to work around permissions issues on Github Actions.
Diffstat (limited to 'loader/loader.c')
-rw-r--r--loader/loader.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/loader/loader.c b/loader/loader.c
index d542cf42..55ead187 100644
--- a/loader/loader.c
+++ b/loader/loader.c
@@ -1815,6 +1815,10 @@ void loader_initialize(void) {
#if defined(LOADER_DISABLE_DYNAMIC_LIBRARY_UNLOADING)
loader_log(NULL, VULKAN_LOADER_WARN_BIT, 0, "Vulkan Loader: library unloading is disabled");
#endif
+
+#if defined(LOADER_USE_UNSAFE_FILE_SEARCH)
+ loader_log(NULL, VULKAN_LOADER_WARN_BIT, 0, "Vulkan Loader: unsafe searching is enabled");
+#endif
}
void loader_release() {