Function chroot

pub fn chroot(dir: &Path) -> Result<()>