SELinux Modes and Reboots
While troubleshooting, an admin runs setenforce 0. /etc/selinux/config contains SELINUX=enforcing. The server is then rebooted. What is the SELinux mode after the reboot?
setenforce 0
/etc/selinux/config
SELINUX=enforcing
Choose one answer
Permissive: setenforce writes the mode it sets to /etc/selinux/config, so the change survives the reboot.
setenforce
Disabled: setenforce 0 unloads the policy until the next relabel.
Enforcing: setenforce only changes the running mode, and the config file sets the mode at boot.
Permissive until someone runs restorecon -R / to relabel the files.
restorecon -R /