pub fn chroot<P: AsRef<Path>>(filename: P) -> Result<(), Errno>
Change the root directory.
let ret = nc::chroot("/"); assert!(ret.is_err()); assert_eq!(ret, Err(nc::EPERM));