The CentOS 7.3 Error setting SELinux prevents the Failed to load SELinux policy from being started. Freezing

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.