1 2 3 4 5 6 7
/// Sets up a jail and locks current process in it. /// /// Returns jail identifier (JID). pub unsafe fn jail(conf: &jail_t) -> Result<i32, Errno> { let conf_ptr = core::ptr::from_ref(conf) as usize; unsafe { syscall1(SYS_JAIL, conf_ptr).map(|ret| ret as i32) } }