[Linux error] Modifying the SELINUXTYPE parameter cannot start the system

background:

After modifying the selinux parameters, restarting the system has been unsuccessful. I recalled that there was a parameter modification that seemed to be wrong. It should be the modification of the SELINUX parameter, which can be modified to the SELINUXTYPE, sin

The situation before the modification is as follows:

[root@node10 ~]# cat /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=enforcing
# 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 modification:

[root@node10 ~]# cat /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=enforcing
# 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 = disabted 

This is the problem. At this time, you need to force start the system to modify the parameters.

 

solve:

1. Restart Linux and press e to enter the system startup item to modify the parameters

 2. Add selinux=0 to the row of linux16

Start the linux system after pressing ctrl + x

3. Modify the /etc/selinux/config file after startup

 

 

 

Guess you like

Origin blog.csdn.net/debimeng/article/details/110295016