Skip to main content

set_attenuates

Function set_attenuates 

Source
pub fn set_attenuates(held: &[Capability], claimed: &[Capability]) -> bool
Expand description

Is the capability set claimed entirely covered by the capability set held? True iff every claimed capability is authorized by at least one held capability. This is the set-level attenuation used between adjacent links of a delegation chain.

Fail-closed: an empty held covers only an empty claimed; any claimed capability with no covering held capability rejects the whole set.