Loading Blender model...
Quality
allowed
denied (stopped at the gate)
violation (permissive)
Top: resource vaults. Bottom: process pods. Centre: policy gate.
Drag to orbit, wheel / pinch to zoom

Mandatory Access Control: SELinux / AppArmor Type Enforcement

Blender 5.2 model + Three.js r160. Defensive lesson on default-deny policy; no attack content.
Allowed0
Blocked0
Violations*0
Secret access**0
*policy would deny but Permissive let it through. **successful accesses by compromised_t to shadow_t.
The science

Discretionary access control lets a file's owner decide. Mandatory access control adds a system-wide policy: each process runs in a domain, each resource has a type, and the kernel asks the policy on every access (Linux Security Module hooks).

decision(s, o, a) = ALLOW  if (type(s), type(o), a) in R
                   = DENY   otherwise (default deny)
Enforcing : DENY -> blocked + "avc: denied" logged
Permissive: DENY -> access proceeds + same log line

Each attempt comes from a legitimate workload with probability 0.6 (one of the domain's own permitted accesses), else a random probe over 6 types x 2 actions. A compromised domain has no rules and targets secrets 70% of the time. Expected allowed share = mean over live domains of 0.6 + 0.4·n/12 (n = rule count, 0 for compromised).

Simplifications: two actions instead of real permission classes, no roles / MLS, no booleans or domain transitions, tiny rule set, and AppArmor is path-based while this is type-based. Log lines imitate the AVC format but are generated. The goal is the default-deny idea and why containment holds even for a compromised process.

Numerical checks
Open the 2D version
Made with 🟠 Blender · Three.js