Skip to main content

LabeledObject

Trait LabeledObject 

Source
pub trait LabeledObject {
    // Required method
    fn security_label(&self) -> Option<SecurityLabel>;
}
Expand description

Anything the reference monitor can ask for a security label.

The monitor never accepts a label from a token/UCAN/caveat (design §3, §14); it asks the object. For data layers the impl reads the manifest’s content-bound security_label; for static nodes it returns the schema- declared label.

Required Methods§

Source

fn security_label(&self) -> Option<SecurityLabel>

This object’s security label. None ⇒ unlabeled ⇒ the monitor MUST deny (no unlabeled-default-allow; design §1 invariant 2). Implementors must NOT manufacture a permissive default here.

Implementors§