pub fn has_cap(
tid: Option<i32>,
cset: CapSet,
cap: Capability,
) -> Result<bool, CapsError>
Expand description
Check if a thread contains a capability in a set.
Check if set cset
for thread tid
contains capability cap
.
If tid
is None
, this operates on current thread (tid=0).
It cannot check Ambient or Bounding capabilities of other processes.