Lines Matching refs:android_namespace_t
81 static android_namespace_t* g_anonymous_namespace = &g_default_namespace;
82 static std::unordered_map<std::string, android_namespace_t*> g_exported_namespaces;
87 static LinkerTypeAllocator<android_namespace_t> g_namespace_allocator;
88 static LinkerTypeAllocator<LinkedListEntry<android_namespace_t>> g_namespace_list_allocator;
178 static bool maybe_accessible_via_namespace_links(android_namespace_t* ns, const char* name) { in maybe_accessible_via_namespace_links()
191 static bool is_exempt_lib(android_namespace_t* ns, const char* name, const soinfo* needed_by) { in is_exempt_lib()
270 LinkedListEntry<android_namespace_t>* NamespaceListAllocator::alloc() { in alloc()
274 void NamespaceListAllocator::free(LinkedListEntry<android_namespace_t>* entry) { in free()
278 soinfo* soinfo_alloc(android_namespace_t* ns, const char* name, in soinfo_alloc()
507 android_namespace_t* _Nonnull start_from, in create()
566 const android_namespace_t* get_start_from() const { in get_start_from()
615 android_namespace_t* start_from, in LoadTask()
638 const android_namespace_t* const start_from_;
699 static const ElfW(Sym)* dlsym_handle_lookup_impl(android_namespace_t* ns, in ElfW()
735 static const ElfW(Sym)* dlsym_linear_lookup(android_namespace_t* ns, in ElfW()
1007 static int open_library(android_namespace_t* ns, in open_library()
1074 static bool find_loaded_library_by_inode(android_namespace_t* ns, in find_loaded_library_by_inode()
1094 android_namespace_t* linked_ns = link.linked_namespace(); in find_loaded_library_by_inode()
1107 static bool find_loaded_library_by_realpath(android_namespace_t* ns, const char* realpath, in find_loaded_library_by_realpath()
1115 android_namespace_t* linked_ns = link.linked_namespace(); in find_loaded_library_by_realpath()
1128 static bool load_library(android_namespace_t* ns, in load_library()
1281 static bool load_library(android_namespace_t* ns, in load_library()
1342 static bool find_loaded_library_by_soname(android_namespace_t* ns, in find_loaded_library_by_soname()
1356 static bool find_loaded_library_by_soname(android_namespace_t* ns, in find_loaded_library_by_soname()
1376 android_namespace_t* linked_ns = link.linked_namespace(); in find_loaded_library_by_soname()
1389 android_namespace_t* ns = namespace_link.linked_namespace(); in find_library_in_linked_namespace()
1426 static bool find_library_internal(android_namespace_t* ns, in find_library_internal()
1516 bool find_libraries(android_namespace_t* ns, in find_libraries()
1526 std::vector<android_namespace_t*>* namespaces) { in find_libraries()
1578 if (!find_library_internal(const_cast<android_namespace_t*>(task->get_start_from()), in find_libraries()
1701 android_namespace_t* needed_by_ns = in find_libraries()
1729 android_namespace_t* local_group_ns = root->get_primary_namespace(); in find_libraries()
1801 static soinfo* find_library(android_namespace_t* ns, in find_library()
2003 static android_namespace_t* get_caller_namespace(soinfo* caller) { in get_caller_namespace()
2070 android_namespace_t* ns = get_caller_namespace(caller); in do_dlopen()
2232 android_namespace_t* ns = get_caller_namespace(caller); in do_dlsym()
2334 static bool set_anonymous_namespace(android_namespace_t* ns) { in set_anonymous_namespace()
2357 android_namespace_t* anon_ns = in init_anonymous_namespace()
2377 static void add_soinfos_to_namespace(const soinfo_list_t& soinfos, android_namespace_t* ns) { in add_soinfos_to_namespace()
2399 android_namespace_t* create_namespace(const void* caller_addr, in create_namespace()
2405 android_namespace_t* parent_namespace) { in create_namespace()
2424 android_namespace_t* ns = new (g_namespace_allocator.alloc()) android_namespace_t(); in create_namespace()
2473 bool link_namespaces(android_namespace_t* namespace_from, in link_namespaces()
2474 android_namespace_t* namespace_to, in link_namespaces()
2500 bool link_namespaces_all_libs(android_namespace_t* namespace_from, in link_namespaces_all_libs()
2501 android_namespace_t* namespace_to) { in link_namespaces_all_libs()
3332 static std::vector<android_namespace_t*> init_default_namespace_no_config(bool is_asan) { in init_default_namespace_no_config()
3348 std::vector<android_namespace_t*> namespaces; in init_default_namespace_no_config()
3441 std::vector<android_namespace_t*> init_default_namespaces(const char* executable_path) { in init_default_namespaces()
3476 std::unordered_map<std::string, android_namespace_t*> namespaces; in init_default_namespaces()
3497 android_namespace_t* ns = new (g_namespace_allocator.alloc()) android_namespace_t(); in init_default_namespaces()
3514 android_namespace_t* namespace_from = it_from->second; in init_default_namespaces()
3518 android_namespace_t* namespace_to = it_to->second; in init_default_namespaces()
3544 std::vector<android_namespace_t*> created_namespaces; in init_default_namespaces()
3554 android_namespace_t* get_exported_namespace(const char* name) { in get_exported_namespace()