def __init__(self, path): self.chroot = path self.orig_fd = os.open("/", os.O_RDONLY) self.chroot_fd = os.open(self.chroot, os.O_RDONLY)