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_greylisted(android_namespace_t* ns, const char* name, const soinfo* needed_by) { in is_greylisted()
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()
1277 static bool load_library(android_namespace_t* ns, in load_library()
1338 static bool find_loaded_library_by_soname(android_namespace_t* ns, in find_loaded_library_by_soname()
1353 static bool find_loaded_library_by_soname(android_namespace_t* ns, in find_loaded_library_by_soname()
1373 android_namespace_t* linked_ns = link.linked_namespace(); in find_loaded_library_by_soname()
1386 android_namespace_t* ns = namespace_link.linked_namespace(); in find_library_in_linked_namespace()
1423 static bool find_library_internal(android_namespace_t* ns, in find_library_internal()
1513 bool find_libraries(android_namespace_t* ns, in find_libraries()
1523 std::vector<android_namespace_t*>* namespaces) { in find_libraries()
1574 if (!find_library_internal(const_cast<android_namespace_t*>(task->get_start_from()), in find_libraries()
1703 android_namespace_t* needed_by_ns = in find_libraries()
1731 android_namespace_t* local_group_ns = root->get_primary_namespace(); in find_libraries()
1803 static soinfo* find_library(android_namespace_t* ns, in find_library()
2005 static android_namespace_t* get_caller_namespace(soinfo* caller) { in get_caller_namespace()
2072 android_namespace_t* ns = get_caller_namespace(caller); in do_dlopen()
2234 android_namespace_t* ns = get_caller_namespace(caller); in do_dlsym()
2336 static bool set_anonymous_namespace(android_namespace_t* ns) { in set_anonymous_namespace()
2359 android_namespace_t* anon_ns = in init_anonymous_namespace()
2379 static void add_soinfos_to_namespace(const soinfo_list_t& soinfos, android_namespace_t* ns) { in add_soinfos_to_namespace()
2401 android_namespace_t* create_namespace(const void* caller_addr, in create_namespace()
2407 android_namespace_t* parent_namespace) { in create_namespace()
2426 android_namespace_t* ns = new (g_namespace_allocator.alloc()) android_namespace_t(); in create_namespace()
2475 bool link_namespaces(android_namespace_t* namespace_from, in link_namespaces()
2476 android_namespace_t* namespace_to, in link_namespaces()
2502 bool link_namespaces_all_libs(android_namespace_t* namespace_from, in link_namespaces_all_libs()
2503 android_namespace_t* namespace_to) { in link_namespaces_all_libs()
3329 static std::vector<android_namespace_t*> init_default_namespace_no_config(bool is_asan) { in init_default_namespace_no_config()
3345 std::vector<android_namespace_t*> namespaces; in init_default_namespace_no_config()
3438 std::vector<android_namespace_t*> init_default_namespaces(const char* executable_path) { in init_default_namespaces()
3477 std::unordered_map<std::string, android_namespace_t*> namespaces; in init_default_namespaces()
3498 android_namespace_t* ns = new (g_namespace_allocator.alloc()) android_namespace_t(); in init_default_namespaces()
3515 android_namespace_t* namespace_from = it_from->second; in init_default_namespaces()
3519 android_namespace_t* namespace_to = it_to->second; in init_default_namespaces()
3545 std::vector<android_namespace_t*> created_namespaces; in init_default_namespaces()
3555 android_namespace_t* get_exported_namespace(const char* name) { in get_exported_namespace()