Skip to main content

clamp_descendant

Function clamp_descendant 

Source
pub fn clamp_descendant(
    mount_floor: SecurityLabel,
    node_label: SecurityLabel,
) -> SecurityLabel
Expand description

Clamp a descendant node’s own (carrier-a/manifest) label to at least its enclosing mount’s bind-time floor.

effective = mount_floor.join(node_label) — restrict-only: the descendant’s effective label is ⊒ mount_floor and ⊒ node_label. A node that declares a less-restrictive label than its mount cannot lower the effective label below the mount’s floor (the declassification-by-declaration case the clamp closes). A node may always declare itself more restrictive.