set_keepcaps

Function 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.