Course
SELinux & MAC Hardening
A practitioner's path through mandatory access control — SELinux contexts, policy reasoning, denial triage, AppArmor tradeoffs, and deploying production services without reaching for permissive mode.
Reviews
Enrolled members can rate this course.
No reviews yet.
Mandatory Access Control Mental Models
Understand what MAC really controls, how SELinux labels and type enforcement work, and why permissive mode hides rather than solves problems.
- 01Mandatory Access Control Is Not Just More PermissionsBuild the correct mental model: discretionary permissions decide what owners allow, while MAC policy decides what confined processes may ever do.24mOpen
- 02Anatomy of an SELinux Context: Users, Roles, Types, and LevelsDecode labels such as system_u:system_r:httpd_t:s0 and learn which fields matter for everyday server troubleshooting.26mOpen
- 03Booleans, Policy Modules, Ports, and the Shape of Real SELinux PolicyLearn the supported adjustment points administrators are expected to use before writing or disabling policy.23mOpen
Diagnosing and Repairing Denials
Read AVC denials, correct file contexts, build local policy modules safely, and avoid audit2allow-driven overreach.
- 01Reading AVC Denials Like an InvestigatorTurn audit messages into a precise statement of subject, object, permission, class, and likely intent before reaching for tooling.27mPremium
- 02File Contexts, restorecon, and semanage fcontext Without GuessworkFix the most common SELinux failure mode: correct object labels at creation time and preserve them across deployments.25mPremium
- 03audit2allow Without Granting the Keys to the BuildingUse audit2allow as a drafting tool, inspect generated rules, narrow them to real intent, and ship maintainable local modules.28mPremium
Deployment and Operations in Enforcing Mode
Onboard services, compare AppArmor, monitor drift, and run production systems with enforceable exceptions instead of disabled controls.
- 01Onboarding a New Service Without Leaving Enforcing ModeFollow a disciplined deployment workflow for paths, ports, systemd units, booleans, test evidence, and rollback.26mPremium
- 02AppArmor Contrast: Path-Based Confinement and Operational TradeoffsCompare AppArmor profiles with SELinux labels and type enforcement so you can operate both without importing the wrong mental model.22mPremium
- 03Operating SELinux in Production: Drift, Exceptions, Incidents, and ProofBuild monitoring, exception management, audit evidence, and incident response practices that keep enforcing mode durable over years.27mPremium