起因

因设备停机,重启系统后报错无法进入系统

Failed to load SELinux policy. Freezing

处理

看报错原因是selinux配置错了,于是重启系统

  • 在选择内核的地方按E,进入grub页面,修改linux16
  • 在language后面也就是LANG=zh_CN.UTF-8后,加上空格,然后加selinux=0 或者 enforcing=0
  • ctrl+x启动系统
  • 进入系统后,重新修改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

最后在重启一次系统,看是否报错.

posted on 2021-04-19 00:00  学业未成  阅读(645)  评论(0编辑  收藏  举报