Searched refs:ns_t (Results 1 – 8 of 8) sorted by relevance
/third_party/musl/porting/linux/user/ldso/ |
D | namespace.h | 51 } ns_t; typedef 56 ns_t **nss; 60 ns_t *inherited_ns; /* inherited namespace */ 74 ns_t *ns_alloc(); 75 void ns_free(ns_t *ns); 76 void ns_set_name(ns_t *ns, const char *name); 77 void ns_set_env_paths(ns_t *ns, const char *env_paths); 78 void ns_set_lib_paths(ns_t *ns, const char *lib_paths); 79 void ns_set_asan_lib_paths(ns_t *ns, const char *asan_lib_paths); 80 void ns_set_permitted_paths(ns_t *ns, const char *permitted_paths); [all …]
|
D | namespace.c | 21 static ns_t g_ns_default; 127 ns_t *ns_alloc() in ns_alloc() 129 ns_t *nst = (ns_t *)__libc_calloc(1, sizeof *nst); in ns_alloc() 139 void ns_free(ns_t *ns) in ns_free() 171 void ns_add_dso(ns_t *ns, struct dso *dso) in ns_add_dso() 198 g_ns_list.nss = (ns_t **)__libc_calloc(NSLIST_DEFAULT_SIZE, sizeof *g_ns_list.nss); in nslist_init() 210 ns_t **nss; in nslist_realloc() 211 nss = (ns_t **)__libc_realloc(g_ns_list.nss, size * (sizeof *g_ns_list.nss)); in nslist_realloc() 222 void nslist_add_ns(ns_t *ns) in nslist_add_ns() 240 ns_t *get_default_ns() in get_default_ns() [all …]
|
D | dynlink_rand.h | 40 ns_t *namespace; 92 hidden struct loadtask *create_loadtask(const char *name, struct dso *needed_by, ns_t *ns, bool che…
|
D | dynlink.c | 189 static void preload_direct_deps(struct dso *p, ns_t *namespace, struct loadtasks *tasks); 194 UT_STATIC void load_preload(char *s, ns_t *ns, struct loadtasks *tasks); 196 static void handle_asan_path_open_by_task(int fd, const char *name, ns_t *namespace, struct loadtas… 203 int handle_asan_path_open(int fd, const char *name, ns_t *namespace, char *buf, size_t buf_size); 234 ns_t *default_ns = get_default_ns(); in init_default_namespace() 251 UT_STATIC void set_ns_attrs(ns_t *ns, ns_configor *conf) in set_ns_attrs() 288 UT_STATIC void set_ns_inherits(ns_t *ns, ns_configor *conf) in set_ns_inherits() 297 ns_t *inherited_ns = find_ns_by_name(inherits->strs[i]); in set_ns_inherits() 353 ns_t *d_ns = get_default_ns(); in init_namespace() 366 ns_t *ns = ns_alloc(); in init_namespace() [all …]
|
D | dynlink_rand.c | 227 struct loadtask *create_loadtask(const char *name, struct dso *needed_by, ns_t *ns, bool check_inhe… in create_loadtask()
|
/third_party/musl/libc-test/src/functionalext/unittest/ |
D | unit_test_ldso_namespace.c | 43 ns_t ns; in namespace_test_0020() 72 ns_t ns; in namespace_test_0030() 105 ns_t ns; in namespace_test_0050() 129 ns_t ns; in namespace_test_0070() 146 ns_t ns; in namespace_test_0080() 196 ns_t ns; in namespace_test_0110() 230 ns_t ns; in namespace_test_0140() 243 ns_t ns; in namespace_test_0150() 256 ns_t ns; in namespace_test_0160() 269 ns_t ns; in namespace_test_0170() [all …]
|
D | unit_test_ldso_dynlink.c | 33 int handle_asan_path_open(int fd, const char *name, ns_t *namespace, char *buf, size_t buf_size); 186 ns_t ns; in dynlink_test_0003() 202 ns_t ns; in dynlink_test_0004() 218 ns_t ns; in dynlink_test_0005() 239 void set_ns_attrs(ns_t *ns, ns_configor *conf); 240 void set_ns_inherits(ns_t *ns, ns_configor *conf); 252 struct dso *find_library_by_fstat(const struct stat *st, const ns_t *ns, bool check_inherited, uint… 253 void load_preload(char *s, ns_t *ns, struct loadtasks *tasks); 275 ns_t *d_ns = get_default_ns(); in dynlink_test_0140() 299 ns_t *d_ns = get_default_ns(); in dynlink_test_0160() [all …]
|
/third_party/musl/porting/linux/user/src/internal/ |
D | dynlink.h | 90 ns_t *namespace; 252 struct dso *dso, struct verinfo *verinfo, struct sym_info_pair s_info_p, int need_def, ns_t *ns);
|