Skip to main content

Module bind

Module bind 

Source
Expand description

Carrier (c) — bind-time labels for synthetic VFS mounts (#699 scope item 1, epic #547).

A synthetic mount (one a subject binds into its own namespace, the Plan 9 composition model) carries a security label computed at bind time from two inputs the binder supplies:

  • binder_floor — the binding subject’s own clearance floor. Not optional: a mount must carry a label, and that label can never be less restrictive than what the binder is itself cleared to read (otherwise a subject could re-export high-clearance data through its own mount labeled low — declassification by re-serving, the D2 amendment case).
  • declared — the label the mount asserts for what it serves.

The effective label is bind_time_labelbinder_floor.join(declared) — the BLP least-upper-bound, a floor not a negotiation. Every node beneath the mount is clamped to at least this label (BindLabelMap::resolve returns it for a descendant), and a descendant’s own carrier-(a) label is joined on top (clamp_descendant) — restrict-only, never less.

§No escape hatch

There is no label-less bind. BindLabelMap::bind takes both inputs as SecurityLabel (not Option), so a mount cannot be constructed without a label at the type level — and a path under a prefix that was never bound resolves to None ⇒ deny (the MAC model has no default label; absence is denial — the same invariant hyprstream::mac::exchange states for grants). There is no Default, no NotApplicable, no flag that turns the clamp off.

Structs§

BindLabel
The effective bind-time label a synthetic mount carries: the restrict-only join of the binder’s floor and the mount’s declared label, via bind_time_label.
BindLabelMap
The set of synthetic-mount bind-time labels keyed by mount prefix.

Functions§

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