CentOS7开机无法启动,报 Failed to load SELinux policy. Freezing错误

时间:2021-04-19 11:16:37   收藏:0   阅读:39

起因

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

Failed to load SELinux policy. Freezing

处理

看报错原因是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

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

原文:https://www.cnblogs.com/GYoungBean/p/14675199.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!