Function caps::raise[][src]

pub fn raise(
    tid: Option<i32>,
    cset: CapSet,
    cap: Capability
) -> Result<(), CapsError>

Raise a single capability in a set for a thread.

Capabilities cap will be raised from set cset of thread tid. If tid is None, this operates on current thread (tid=0). It cannot manipulate Ambient set of other processes. Capabilities cannot be raised in Bounding set.