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
More on Firewalls, MAC & Compliance
How do ufw, firewalld, nftables and iptables relate?BeginnerConfigure ufw for a web server with SSH only from the office.BeginnerExplain firewalld zones and runtime vs permanent configuration.IntermediateWrite a minimal nftables ruleset for a server.AdvancedWhy are nftables preferred over iptables at scale?AdvancedHow do you avoid locking yourself out when changing remote firewall rules?Intermediate