Why should you never set SELinux to disabled, even temporarily?
IntermediateProductionFirewalls, MAC & Compliance
Answer
Booting with SELinux disabled means files created during that time get no labels. When you re-enable it, those files cause denials everywhere until a full relabel (touch /.autorelabel && reboot), which can take a long time on large filesystems. Use setenforce 0 (permissive) for short debugging instead, or make a single domain permissive: semanage permissive -a httpd_t. On RHEL 9, SELINUX=disabled in /etc/selinux/config no longer fully disables SELinux (it only skips loading the policy); a full disable needs selinux=0 on the kernel command line.
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