Lines Matching refs:dest
95 static char *resolve_source_path(const char *dest, const char *source) { in resolve_source_path() argument
100 return path_join(dest, source + 1); in resolve_source_path()
129 int custom_mount_prepare_all(const char *dest, CustomMount *l, size_t n) { in custom_mount_prepare_all() argument
154 s = resolve_source_path(dest, m->source); in custom_mount_prepare_all()
172 s = resolve_source_path(dest, *j); in custom_mount_prepare_all()
182 s = resolve_source_path(dest, m->source); in custom_mount_prepare_all()
196 s = resolve_source_path(dest, m->work_dir); in custom_mount_prepare_all()
406 int mount_sysfs(const char *dest, MountSettingsMask mount_settings) { in mount_sysfs() argument
411 top = prefix_roota(dest, "/sys"); in mount_sysfs()
474 int mount_all(const char *dest, in mount_all() argument
592 … r = chase_symlinks(mount_table[k].where, dest, CHASE_NONEXISTENT|CHASE_PREFIX_ROOT, &where, NULL); in mount_all()
594 … return log_error_errno(r, "Failed to resolve %s/%s: %m", dest, mount_table[k].where); in mount_all()
609 r = mkdir_parents_safe(dest, where, 0755, u, u, 0); in mount_all()
611 r = mkdir_p_safe(dest, where, 0755, u, u, 0); in mount_all()
651 … r = chase_symlinks(mount_table[k].what, dest, CHASE_PREFIX_ROOT, &prefixed, NULL); in mount_all()
653 … return log_error_errno(r, "Failed to resolve %s/%s: %m", dest, mount_table[k].what); in mount_all()
709 static int mount_bind(const char *dest, CustomMount *m, uid_t uid_shift, uid_t uid_range) { in mount_bind() argument
716 assert(dest); in mount_bind()
733 r = chase_symlinks(m->destination, dest, CHASE_PREFIX_ROOT|CHASE_NONEXISTENT, &where, NULL); in mount_bind()
735 return log_error_errno(r, "Failed to resolve %s/%s: %m", dest, m->destination); in mount_bind()
787 static int mount_tmpfs(const char *dest, CustomMount *m, uid_t uid_shift, const char *selinux_apifs… in mount_tmpfs() argument
792 assert(dest); in mount_tmpfs()
795 r = chase_symlinks(m->destination, dest, CHASE_PREFIX_ROOT|CHASE_NONEXISTENT, &where, NULL); in mount_tmpfs()
797 return log_error_errno(r, "Failed to resolve %s/%s: %m", dest, m->destination); in mount_tmpfs()
827 static int mount_overlay(const char *dest, CustomMount *m) { in mount_overlay() argument
832 assert(dest); in mount_overlay()
835 r = chase_symlinks(m->destination, dest, CHASE_PREFIX_ROOT|CHASE_NONEXISTENT, &where, NULL); in mount_overlay()
837 return log_error_errno(r, "Failed to resolve %s/%s: %m", dest, m->destination); in mount_overlay()
869 static int mount_inaccessible(const char *dest, CustomMount *m) { in mount_inaccessible() argument
874 assert(dest); in mount_inaccessible()
877 r = chase_symlinks_and_stat(m->destination, dest, CHASE_PREFIX_ROOT, &where, &st, NULL); in mount_inaccessible()
879 …l_errno(m->graceful ? LOG_DEBUG : LOG_ERR, r, "Failed to resolve %s/%s: %m", dest, m->destination); in mount_inaccessible()
900 static int mount_arbitrary(const char *dest, CustomMount *m) { in mount_arbitrary() argument
904 assert(dest); in mount_arbitrary()
907 r = chase_symlinks(m->destination, dest, CHASE_PREFIX_ROOT|CHASE_NONEXISTENT, &where, NULL); in mount_arbitrary()
909 return log_error_errno(r, "Failed to resolve %s/%s: %m", dest, m->destination); in mount_arbitrary()
920 const char *dest, in mount_custom() argument
928 assert(dest); in mount_custom()
945 r = mount_bind(dest, m, uid_shift, uid_range); in mount_custom()
949 r = mount_tmpfs(dest, m, uid_shift, selinux_apifs_context); in mount_custom()
953 r = mount_overlay(dest, m); in mount_custom()
957 r = mount_inaccessible(dest, m); in mount_custom()
961 r = mount_arbitrary(dest, m); in mount_custom()