Cause of error
Configuring off SELinux, resulting in mis-operation
The value of the "SELinux" parameter in the configuration file/etc/selinux/config should be modified,
# selinux=enforcing Original Configuration
selinux=disabled correct
However, the "Selinuxtype" is mistakenly considered as "SELINUX" and the Selinuxtype parameters are set:
#SELINUXTYPE =targeted Original Configuration This does not have to be modified.
selinuxtype=disabled Error
Error results
The machine is reported Failed to load SELinux policy after reboot. Freezing error causes no boot
Solutions :
1. Restart on the Start page, select the kernel you want to launch press E to enter the Grub edit page.
enforcing=0
3. Then CTRL + X starts, and you see the familiar login screen.
4. Modify the SELinux configuration file to properly close SELinux!
vim /etc/selinux/config# this file controls the state of selinux On the system.# selinux= can take one of these three values: # enforcing - selinux security policy is enforced.# permissive - selinux prints warnings instead of enforcing . # disabled - no selinux policy is loaded. selinux=disabled# selinuxtype= can take one of three two values:# targeted - Targeted processes are protected,# minimum - Modification of targeted policy. Only selected processes are protected. # mls - multi level Security protection. Selinuxtype=targeTed
After the modification is complete, restart. Check to see if an error occurs. Over
The CentOS 7.3 Error setting SELinux prevents the Failed to load SELinux policy from being started. Freezing