Tag Archives: 20190603 – CentOS 7

20190603 – CentOS 7 prompt failed to load SELinux policy. Freezing causes stuck solution

After chopping hands, the fraud call came before the express delivery was received. How to improve the privacy and security of e-commerce>>>

phenomenon

Recently, windows and two Macs have been mixed to copy CentOS 7 installed in Windows VirtualBox to Macs

When starting CentOS 7, at the end of the GUI progress card, press ESC to see the following prompt:

Failed to load SELinux policy. Freezing

cause analysis

It may be caused by SELinux setting error. As a result, after restart, the machine cannot enter the CentOS 7 boot menu normally, causing it stuck

solutions

1. When restarting, press e to enter grub page

2. In about 16 lines, after language, lang = * * * UTF-8 followed by a space, plus

selinux=0

3. Press Ctrl + X to start, that is to see the recording interface, and then execute

vim /etc/selinux/config

4. The contents of the modified file are as follows, mainly non comment lines

# 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

5. After modification, press the VIM command: WQ! Save and restart the machine