Searched refs:no_new_privs (Results 1 – 2 of 2) sorted by relevance
511 pub fn no_new_privs() -> io::Result<bool> { in no_new_privs() function524 pub fn set_no_new_privs(no_new_privs: bool) -> io::Result<()> { in set_no_new_privs()525 unsafe { prctl_2args(PR_SET_NO_NEW_PRIVS, no_new_privs as usize as *mut _) }.map(|_r| ()) in set_no_new_privs()
33 dbg!(no_new_privs().unwrap()); in test_no_new_privs()