Skip to main content

seal_label

Function seal_label 

Source
pub fn seal_label(
    domain: &DedupDomain,
    hint: Option<SecurityLabel>,
) -> SecurityLabel
Expand description

Compute the effective seal label: join(domain_label(domain), hint).

The domain label is authoritative (content-bound). The hint is a D1 label from our own staging path — trusted as a restrict-only input, never permissive. join (BLP least-upper-bound) can only make the effective label more restrictive than either input, never less.

Callers:

  • CasSubstrate::put calls this when a staging hint is supplied, stamping the result on the BlobManifest carrier field.
  • The seal path in CasMount::seal_slot passes the staging-joined label as the hint.