Interview Prep/Linux/Firewalls, MAC & Compliance

What is SELinux, in practical terms?

BeginnerProductionFirewalls, MAC & Compliance
Answer

SELinux is mandatory access control on RHEL/Fedora: every process and file has a label (context), and a policy says which process types may access which object types. Even if nginx runs as root and is exploited, the httpd_t domain cannot read /home or /etc/shadow. Modes: enforcing, permissive (log only), disabled.

getenforce; sestatus
ls -Z /var/www/html; ps -eZ | grep nginx
All Linux questions Roadmap: Linux

More on Firewalls, MAC & Compliance