Lines Matching refs:directories

1956                 if (c->directories[t].n_items == 0)  in build_environment()
1963 for (size_t i = 0; i < c->directories[t].n_items; i++) { in build_environment()
1966 prefixed = path_join(p->prefix[t], c->directories[t].items[i].path); in build_environment()
2090 if (context->directories[t].n_items > 0) in exec_needs_mount_namespace()
2096 (context->directories[EXEC_DIRECTORY_STATE].n_items > 0 || in exec_needs_mount_namespace()
2097 context->directories[EXEC_DIRECTORY_CACHE].n_items > 0 || in exec_needs_mount_namespace()
2098 context->directories[EXEC_DIRECTORY_LOGS].n_items > 0)) in exec_needs_mount_namespace()
2341 for (size_t i = 0; i < context->directories[type].n_items; i++) { in setup_exec_directory()
2344 p = path_join(params->prefix[type], context->directories[type].items[i].path); in setup_exec_directory()
2391 if (!path_extend(&pp, context->directories[type].items[i].path)) { in setup_exec_directory()
2419 r = mkdir_label(pp, context->directories[type].mode); in setup_exec_directory()
2449 … q = path_join(params->prefix[type], "private", context->directories[type].items[i].path); in setup_exec_directory()
2481 r = mkdir_label(p, context->directories[type].mode); in setup_exec_directory()
2499 … if (((st.st_mode ^ context->directories[type].mode) & 07777) != 0) in setup_exec_directory()
2502 … exec_directory_type_to_string(type), context->directories[type].items[i].path, in setup_exec_directory()
2503 … st.st_mode & 07777, exec_directory_type_to_string(type), context->directories[type].mode & 07777); in setup_exec_directory()
2513 … r = chmod_and_chown(pp ?: p, context->directories[type].mode, UID_INVALID, GID_INVALID); in setup_exec_directory()
2528 for (size_t i = 0; i < context->directories[type].n_items; i++) { in setup_exec_directory()
2530 context->directories[type].items[i].path, in setup_exec_directory()
2531 context->directories[type].items[i].symlinks); in setup_exec_directory()
3303 n += context->directories[t].n_items; in compile_bind_mounts()
3347 if (context->directories[t].n_items == 0) in compile_bind_mounts()
3369 for (size_t i = 0; i < context->directories[t].n_items; i++) { in compile_bind_mounts()
3373 … s = path_join(params->prefix[t], "private", context->directories[t].items[i].path); in compile_bind_mounts()
3375 … s = path_join(params->prefix[t], context->directories[t].items[i].path); in compile_bind_mounts()
3386 … d = path_join(params->prefix[t], context->directories[t].items[i].path); in compile_bind_mounts()
3435 for (size_t i = 0; i < context->directories[dt].n_items; i++) { in compile_symlinks()
3438 STRV_FOREACH(symlink, context->directories[dt].items[i].symlinks) { in compile_symlinks()
3441 … src_abs = path_join(params->prefix[dt], context->directories[dt].items[i].path); in compile_symlinks()
3454 … private_path = path_join(params->prefix[dt], "private", context->directories[dt].items[i].path); in compile_symlinks()
3458 … path = path_join(params->prefix[dt], context->directories[dt].items[i].path); in compile_symlinks()
3987 for (size_t i = 0; i < c->directories[t].n_items; i++) { in compile_suggested_paths()
3991 … e = path_join(p->prefix[t], "private", c->directories[t].items[i].path); in compile_suggested_paths()
3993 e = path_join(p->prefix[t], c->directories[t].items[i].path); in compile_suggested_paths()
5311 c->directories[t].mode = 0755; in exec_context_init()
5392 exec_directory_done(&c->directories[t]); in exec_context_done()
5419 for (size_t i = 0; i < c->directories[EXEC_DIRECTORY_RUNTIME].n_items; i++) { in exec_context_destroy_runtime_directory()
5423 … p = path_join(runtime_prefix, "private", c->directories[EXEC_DIRECTORY_RUNTIME].items[i].path); in exec_context_destroy_runtime_directory()
5425 … p = path_join(runtime_prefix, c->directories[EXEC_DIRECTORY_RUNTIME].items[i].path); in exec_context_destroy_runtime_directory()
5433 STRV_FOREACH(symlink, c->directories[EXEC_DIRECTORY_RUNTIME].items[i].symlinks) { in exec_context_destroy_runtime_directory()
5837 …fprintf(f, "%s%sMode: %04o\n", prefix, exec_directory_type_to_string(dt), c->directories[dt].mode); in exec_context_dump()
5839 for (size_t i = 0; i < c->directories[dt].n_items; i++) { in exec_context_dump()
5840 …fprintf(f, "%s%s: %s\n", prefix, exec_directory_type_to_string(dt), c->directories[dt].items[i].pa… in exec_context_dump()
5842 STRV_FOREACH(d, c->directories[dt].items[i].symlinks) in exec_context_dump()
5843 …"%s%s: %s:%s\n", prefix, exec_directory_type_symlink_to_string(dt), c->directories[dt].items[i].pa… in exec_context_dump()
6318 for (size_t i = 0; i < c->directories[t].n_items; i++) { in exec_context_get_clean_directories()
6321 j = path_join(prefix[t], c->directories[t].items[i].path); in exec_context_get_clean_directories()
6331 … j = path_join(prefix[t], "private", c->directories[t].items[i].path); in exec_context_get_clean_directories()
6340 STRV_FOREACH(symlink, c->directories[t].items[i].symlinks) { in exec_context_get_clean_directories()
6363 if (c->directories[t].n_items > 0) in exec_context_get_clean_mask()