Skip to main content

bind_time_label

Function bind_time_label 

Source
pub fn bind_time_label(
    binder_floor: SecurityLabel,
    declared: SecurityLabel,
) -> SecurityLabel
Expand description

Bind-time label clamp (#699 carrier c, D2 amendment ratified 2026-07-03): a client-controlled mount (the plan9 model — users compose their own namespaces) can label what it serves up but never down below what it can read, or a subject could read data at a high clearance through its own access and re-export it labeled low through its own mount — declassifying by re-serving.

effective = join(binder_floor, declared). join (BLP least-upper-bound: max level, max assurance requirement, union of compartments) can only make the effective label more restrictive than either input, never less — so this is a floor, not a negotiation: effective ⊒ binder_floor and effective ⊒ declared always hold.

binder_floor is the binding subject’s own super::context::SecurityContext clearance (what Namespace::bind_mount’s threaded Subject resolves to); declared is the label the mount asserts for what it serves.