[][src]Function capctl::prctl::set_keepcaps

pub fn set_keepcaps(keep: bool) -> Result<()>

Set the "keep capabilities" flag of the current thread.

Setting this flag allows a thread to retain its permitted capabilities when switching all its UIDs to non-zero values (the effective capability set is still emptied).

This flag is always cleared on an execve(); see capabilities(7) for more details.