SELinux contexts, animated.
Every file and every process on a SELinux-enforcing system carries a security context. Watch how the policy engine compares them — and why a misplaced file is the most common cause of production-day denials.
SELinux contexts explained with animations. Process contexts, file contexts, the policy decision engine, chcon, restorecon, and how to troubleshoot denials. Maps to the RHCSA EX200 exam objectives on SELinux.SELinux is mandatory access control. Beyond regular ugo permissions, every process and every object gets a label, and policy decides what label can touch what. Confusing at first; elegant once it clicks.
- ·Basic Linux file permissions (chmod, chown)
- ·Running services with systemctl
- ·Reading log files (tail, grep, less)
Explain how SELinux blocks or allows an access, and run the three commands that fix 99% of denials in production.
pace: 8 minutes
Every actor carries a context
When a service mysteriously fails on RHEL — works on dev, breaks in prod — SELinux is the first thing to suspect. The fix is almost never "disable SELinux"; it's usually a wrong label or a missing boolean. Learn the troubleshooting flow and you'll save hours.
$ls -Z file$ps -eZ | grep httpd$id -Z$chcon -t TYPE_t file$restorecon -v file$semanage fcontext -a -t TYPE_t '/path(/.*)?'$ausearch -m AVC -ts recent$audit2why -al$getsebool -a | grep httpd$setsebool -P bool onWhich field of a SELinux context matters most for everyday decisions?
Apache can read /var/www/html on a fresh install but breaks after you copy a file there from /home. Most likely cause?
Which command resets a file's context to whatever the policy says it should be?
Where does the kernel log SELinux denials?
These aren't graded — they're just for active recall, which is what actually makes the lesson stick.
keep going — these pair well with what you just learned.
Linux boot process
From power button to login prompt. Every stage in the chain — UEFI, GRUB, kernel, initramfs, systemd — with the rescue moves that save you. RHCSA-ready.
LVM stacking
Layer-by-layer build of an LVM stack: disks → PVs → VG → LVs → filesystem. Then extend live and snapshot. RHCSA-ready.
systemd targets
How systemd organizes services with dependencies and targets. Visual dependency graph, target nesting, and the isolate trick. RHCSA-ready.