Skip to main content

MAX_COMPARTMENTS

Constant MAX_COMPARTMENTS 

Source
pub const MAX_COMPARTMENTS: u32 = 64;
Expand description

Number of distinct compartments representable in a label.

A fixed bitset width keeps SecurityLabel Copy and pointer-free so it can be an AVC key (S4, #570). 64 is ample headroom for the closed, audited compartment vocabulary; widening it is a deliberate (versioned) TCB change, the same class of change as adding a Level.