Lines Matching refs:dlns
3494 void dlns_init(Dl_namespace *dlns, const char *name) in dlns_init() argument
3496 if (!dlns) { in dlns_init()
3500 dlns->name[0] = 0; in dlns_init()
3509 snprintf(dlns->name, sizeof dlns->name, name); in dlns_init()
3510 LD_LOGI("dlns_init dlns->name:%{public}s .", dlns->name); in dlns_init()
3513 int dlns_get(const char *name, Dl_namespace *dlns) in dlns_get() argument
3515 if (!dlns) { in dlns_get()
3527 (void)snprintf(dlns->name, sizeof dlns->name, ns->ns_name); in dlns_get()
3528 LD_LOGI("dlns_get name is null, current dlns dlns->name:%{public}s.", dlns->name); in dlns_get()
3532 (void)snprintf(dlns->name, sizeof dlns->name, ns->ns_name); in dlns_get()
3533 LD_LOGI("dlns_get found ns, current dlns dlns->name:%{public}s.", dlns->name); in dlns_get()
3543 void *dlopen_ns(Dl_namespace *dlns, const char *file, int mode) in dlopen_ns() argument
3546 if (is_permitted(caller_addr, dlns->name) == false) { in dlopen_ns()
3556 dlns ? dlns->name : "NULL"); in dlopen_ns()
3557 return dlopen_impl(file, mode, dlns->name, caller_addr, NULL); in dlopen_ns()
3560 void *dlopen_ns_ext(Dl_namespace *dlns, const char *file, int mode, const dl_extinfo *extinfo) in dlopen_ns_ext() argument
3563 if (is_permitted(caller_addr, dlns->name) == false) { in dlopen_ns_ext()
3574 dlns->name, in dlopen_ns_ext()
3576 return dlopen_impl(file, mode, dlns->name, caller_addr, extinfo); in dlopen_ns_ext()
3579 int dlns_create2(Dl_namespace *dlns, const char *lib_path, int flags) in dlns_create2() argument
3581 if (!dlns) { in dlns_create2()
3589 if (is_permitted(caller_addr, dlns->name) == false) { in dlns_create2()
3594 ns = find_ns_by_name(dlns->name); in dlns_create2()
3606 ns_set_name(ns, dlns->name); in dlns_create2()
3635 int dlns_create(Dl_namespace *dlns, const char *lib_path) in dlns_create() argument
3638 return dlns_create2(dlns, lib_path, CREATE_INHERIT_DEFAULT); in dlns_create()
3641 int dlns_inherit(Dl_namespace *dlns, Dl_namespace *inherited, const char *shared_libs) in dlns_inherit() argument
3643 if (!dlns || !inherited) { in dlns_inherit()
3650 if (is_permitted(caller_addr, dlns->name) == false) { in dlns_inherit()
3655 ns_t* ns = find_ns_by_name(dlns->name); in dlns_inherit()