Searched refs:asan_lib_paths (Results 1 – 5 of 5) sorted by relevance
/third_party/musl/libc-test/src/functionalext/unittest/ |
D | unit_test_ldso_namespace.c | 49 ns.asan_lib_paths = (char*)&tmp; in namespace_test_0020() 77 ns.asan_lib_paths = NULL; in namespace_test_0030() 294 ns.asan_lib_paths = NULL; in namespace_test_0190() 296 EXPECT_EQ(__FUNCTION__, strcmp(ns.asan_lib_paths, "abc"), 0); in namespace_test_0190() 307 ns.asan_lib_paths = "abc"; in namespace_test_0200() 309 EXPECT_EQ(__FUNCTION__, strcmp(ns.asan_lib_paths, "abc"), 0); in namespace_test_0200() 320 ns.asan_lib_paths = NULL; in namespace_test_0210() 322 EXPECT_EQ(__FUNCTION__, ns.asan_lib_paths, NULL); in namespace_test_0210() 333 ns.asan_lib_paths = "abc"; in namespace_test_0220() 335 EXPECT_EQ(__FUNCTION__, ns.asan_lib_paths, NULL); in namespace_test_0220() [all …]
|
D | unit_test_ldso_dynlink.c | 187 ns.asan_lib_paths = "/lib:/system/lib"; in dynlink_test_0003() 203 ns.asan_lib_paths = NULL; in dynlink_test_0004() 219 ns.asan_lib_paths = "/lib:/system"; in dynlink_test_0005()
|
/third_party/musl/porting/linux/user/ldso/ |
D | namespace.c | 160 if (ns->asan_lib_paths) { in ns_free() 161 __libc_free(ns->asan_lib_paths); in ns_free() 162 ns->asan_lib_paths = NULL; in ns_free() 287 void ns_set_asan_lib_paths(ns_t *ns, const char *asan_lib_paths) in ns_set_asan_lib_paths() argument 292 if (ns->asan_lib_paths) { in ns_set_asan_lib_paths() 293 __libc_free(ns->asan_lib_paths); in ns_set_asan_lib_paths() 295 if (asan_lib_paths) { in ns_set_asan_lib_paths() 296 ns->asan_lib_paths = ld_strdup(asan_lib_paths); in ns_set_asan_lib_paths() 297 strtrim(ns->asan_lib_paths); in ns_set_asan_lib_paths() 299 ns->asan_lib_paths = NULL; in ns_set_asan_lib_paths() [all …]
|
D | namespace.h | 42 char *asan_lib_paths; /* when asan is enable, library search paths splited by ':'. */ member 79 void ns_set_asan_lib_paths(ns_t *ns, const char *asan_lib_paths);
|
D | dynlink.c | 257 char *lib_paths, *asan_lib_paths, *permitted_paths, *asan_permitted_paths, *allowed_libs; in set_ns_attrs() local 264 asan_lib_paths = conf->get_asan_lib_paths(ns->ns_name); in set_ns_attrs() 265 if (asan_lib_paths) ns_set_asan_lib_paths(ns, asan_lib_paths); in set_ns_attrs() 284 ns->ns_name, ns->separated, ns->lib_paths, ns->asan_lib_paths, permitted_paths, in set_ns_attrs() 307 inherited_ns->asan_lib_paths); in set_ns_inherits() 4463 if (fd == -1 && (namespace->asan_lib_paths || namespace->lib_paths)) { in handle_asan_path_open() 4464 if (namespace->lib_paths && namespace->asan_lib_paths) { in handle_asan_path_open() 4465 size_t newlen = strlen(namespace->asan_lib_paths) + strlen(namespace->lib_paths) + 2; in handle_asan_path_open() 4468 strcpy(new_lib_paths, namespace->asan_lib_paths); in handle_asan_path_open() 4474 } else if (namespace->asan_lib_paths) { in handle_asan_path_open() [all …]
|