• Home
  • Raw
  • Download

Lines Matching refs:chrootdir

153 	char *chrootdir;  member
561 if (j->chrootdir) in minijail_enter_chroot()
563 j->chrootdir = strdup(dir); in minijail_enter_chroot()
564 if (!j->chrootdir) in minijail_enter_chroot()
572 if (j->chrootdir) in minijail_enter_pivot_root()
574 j->chrootdir = strdup(dir); in minijail_enter_pivot_root()
575 if (!j->chrootdir) in minijail_enter_pivot_root()
616 if (j->chrootdir) in minijail_get_original_path()
617 return path_join(j->chrootdir, path_inside_chroot); in minijail_get_original_path()
926 if (j->chrootdir) in minijail_marshal_helper()
927 marshal_append(state, j->chrootdir, strlen(j->chrootdir) + 1); in minijail_marshal_helper()
1008 if (j->chrootdir) { /* stale pointer */ in minijail_unmarshal()
1009 char *chrootdir = consumestr(&serialized, &length); in minijail_unmarshal() local
1010 if (!chrootdir) in minijail_unmarshal()
1012 j->chrootdir = strdup(chrootdir); in minijail_unmarshal()
1013 if (!j->chrootdir) in minijail_unmarshal()
1129 if (j->chrootdir) in minijail_unmarshal()
1130 free(j->chrootdir); in minijail_unmarshal()
1143 j->chrootdir = NULL; in minijail_unmarshal()
1165 if (asprintf(&dest, "%s%s", j->chrootdir, m->dest) < 0) in mount_one()
1206 if (chroot(j->chrootdir)) in enter_chroot()
1229 newroot = open(j->chrootdir, O_DIRECTORY | O_RDONLY | O_CLOEXEC); in enter_pivot_root()
1231 pdie("failed to open %s for fchdir", j->chrootdir); in enter_pivot_root()
1237 if (mount(j->chrootdir, j->chrootdir, "bind", MS_BIND | MS_REC, "")) in enter_pivot_root()
1238 pdie("failed to bind mount '%s'", j->chrootdir); in enter_pivot_root()
1239 if (chdir(j->chrootdir)) in enter_pivot_root()
2437 if (j->chrootdir) in minijail_destroy()
2438 free(j->chrootdir); in minijail_destroy()