Function caps::set[][src]

pub fn set(
    tid: Option<i32>,
    cset: CapSet,
    value: &CapsHashSet
) -> Result<(), CapsError>

Set a capability set for a thread to a new value.

All and only capabilities in value will be set for set cset for thread tid. If tid is None, this operates on current thread (tid=0). It cannot manipulate Ambient set of other processes. Capabilities cannot be set in Bounding set.