Function nix::sys::prctl::set_keepcaps

source ·
pub fn set_keepcaps(attribute: bool) -> Result<()>
Available on crate feature process only.
Expand description

Set the “keep capabilities” attribute for this process. This causes the thread to retain capabilities even if it switches its UID to a nonzero value.