• Home
  • Raw
  • Download

Lines Matching refs:chrootdir

178 	char *chrootdir;  member
607 if (j->chrootdir) in minijail_enter_chroot()
609 j->chrootdir = strdup(dir); in minijail_enter_chroot()
610 if (!j->chrootdir) in minijail_enter_chroot()
618 if (j->chrootdir) in minijail_enter_pivot_root()
620 j->chrootdir = strdup(dir); in minijail_enter_pivot_root()
621 if (!j->chrootdir) in minijail_enter_pivot_root()
662 if (j->chrootdir) in minijail_get_original_path()
663 return path_join(j->chrootdir, path_inside_chroot); in minijail_get_original_path()
1105 if (j->chrootdir) in minijail_marshal_helper()
1106 marshal_append(state, j->chrootdir, strlen(j->chrootdir) + 1); in minijail_marshal_helper()
1190 if (j->chrootdir) { /* stale pointer */ in minijail_unmarshal()
1191 char *chrootdir = consumestr(&serialized, &length); in minijail_unmarshal() local
1192 if (!chrootdir) in minijail_unmarshal()
1194 j->chrootdir = strdup(chrootdir); in minijail_unmarshal()
1195 if (!j->chrootdir) in minijail_unmarshal()
1301 if (j->chrootdir) in minijail_unmarshal()
1302 free(j->chrootdir); in minijail_unmarshal()
1315 j->chrootdir = NULL; in minijail_unmarshal()
1455 if (asprintf(&dest, "%s/dev", j->chrootdir ? : "") < 0) in mount_dev_finalize()
1490 if (asprintf(&dest, "%s%s", j->chrootdir ?: "", m->dest) < 0) in mount_one()
1577 if (chroot(j->chrootdir)) in enter_chroot()
1599 newroot = open(j->chrootdir, O_DIRECTORY | O_RDONLY | O_CLOEXEC); in enter_pivot_root()
1601 pdie("failed to open %s for fchdir", j->chrootdir); in enter_pivot_root()
1607 if (mount(j->chrootdir, j->chrootdir, "bind", MS_BIND | MS_REC, "")) in enter_pivot_root()
1608 pdie("failed to bind mount '%s'", j->chrootdir); in enter_pivot_root()
1609 if (chdir(j->chrootdir)) in enter_pivot_root()
3091 if (j->chrootdir) in minijail_destroy()
3092 free(j->chrootdir); in minijail_destroy()