Lines Matching refs:chrootdir

172 	char *chrootdir;  member
548 if (j->chrootdir) in minijail_enter_chroot()
550 j->chrootdir = strdup(dir); in minijail_enter_chroot()
551 if (!j->chrootdir) in minijail_enter_chroot()
559 if (j->chrootdir) in minijail_enter_pivot_root()
561 j->chrootdir = strdup(dir); in minijail_enter_pivot_root()
562 if (!j->chrootdir) in minijail_enter_pivot_root()
603 if (j->chrootdir) in minijail_get_original_path()
604 return path_join(j->chrootdir, path_inside_chroot); in minijail_get_original_path()
887 if (j->chrootdir) in minijail_marshal_helper()
888 marshal_append(state, j->chrootdir, strlen(j->chrootdir) + 1); in minijail_marshal_helper()
967 if (j->chrootdir) { /* stale pointer */ in minijail_unmarshal()
968 char *chrootdir = consumestr(&serialized, &length); in minijail_unmarshal() local
969 if (!chrootdir) in minijail_unmarshal()
971 j->chrootdir = strdup(chrootdir); in minijail_unmarshal()
972 if (!j->chrootdir) in minijail_unmarshal()
1079 if (j->chrootdir) in minijail_unmarshal()
1080 free(j->chrootdir); in minijail_unmarshal()
1090 j->chrootdir = NULL; in minijail_unmarshal()
1144 if (asprintf(&dest, "%s%s", j->chrootdir, m->dest) < 0) in mount_one()
1185 if (chroot(j->chrootdir)) in enter_chroot()
1208 newroot = open(j->chrootdir, O_DIRECTORY | O_RDONLY | O_CLOEXEC); in enter_pivot_root()
1210 pdie("failed to open %s for fchdir", j->chrootdir); in enter_pivot_root()
1216 if (mount(j->chrootdir, j->chrootdir, "bind", MS_BIND | MS_REC, "")) in enter_pivot_root()
1217 pdie("failed to bind mount '%s'", j->chrootdir); in enter_pivot_root()
1218 if (chdir(j->chrootdir)) in enter_pivot_root()
2420 if (j->chrootdir) in minijail_destroy()
2421 free(j->chrootdir); in minijail_destroy()