Lines Matching refs:dest
225 int mount_sysfs(const char *dest) {
229 top = prefix_roota(dest, "/sys");
282 int mount_all(const char *dest,
328 where = prefix_root(dest, mount_table[k].where);
406 static int mount_bind(const char *dest, CustomMount *m) {
424 where = prefix_roota(dest, m->destination);
469 const char *dest,
478 assert(dest);
481 where = prefix_roota(dest, m->destination);
513 static int mount_overlay(const char *dest, CustomMount *m) {
518 assert(dest);
521 where = prefix_roota(dest, m->destination);
564 const char *dest,
572 assert(dest);
580 r = mount_bind(dest, m);
584 r = mount_tmpfs(dest, m, userns, uid_shift, uid_range, selinux_apifs_context);
588 r = mount_overlay(dest, m);
602 static int mount_legacy_cgroup_hierarchy(const char *dest, const char *controller, const char *hierarchy, bool read_only) {
606 to = strjoina(strempty(dest), "/sys/fs/cgroup/", hierarchy);
631 const char *dest,
639 cgroup_root = prefix_roota(dest, "/sys/fs/cgroup");
684 r = mount_legacy_cgroup_hierarchy(dest, controller, controller, true);
693 target = prefix_root(dest, origin);
704 r = mount_legacy_cgroup_hierarchy(dest, combined, combined, true);
719 r = mount_legacy_cgroup_hierarchy(dest, "none,name=systemd,xattr", "systemd", false);
729 static int mount_unified_cgroups(const char *dest) {
733 assert(dest);
735 p = prefix_roota(dest, "/sys/fs/cgroup");
743 p = prefix_roota(dest, "/sys/fs/cgroup/cgroup.procs");
760 const char *dest,
766 return mount_unified_cgroups(dest);
768 return mount_legacy_cgroups(dest, userns, uid_shift, uid_range, selinux_apifs_context);
772 const char *dest,
779 assert(dest);
790 systemd_own = strjoina(dest, "/sys/fs/cgroup", own_cgroup_path);
791 systemd_root = prefix_roota(dest, "/sys/fs/cgroup");
793 systemd_own = strjoina(dest, "/sys/fs/cgroup/systemd", own_cgroup_path);
794 systemd_root = prefix_roota(dest, "/sys/fs/cgroup/systemd");