1. 通过 dmsg|grep -i selinux查看错误信息:
# dmesg | grep -i selinux
[ 0.181979]SELinux: Initializing.
[ 0.181988]SELinux: Starting in permissive mode
[ 0.268539] EVM: security.selinux
[ 0.797927]SELinux: Registering netfilter hooks
[ 0.867048] systemd[1]: systemd 219 running in system mode. (+PAM +AUDIT +SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 -SECCOMP +BLKID +ELFUTILS +KMOD +IDN)
[ 2.611823]SELinux: Disabled at runtime.
[ 2.611845]SELinux: Unregistering netfilter hooks
[ 2.612069] type=1404 audit(1530573239.255:2):selinux=0 auid=4294967295 ses=4294967295
2. 运行命令: yum reinstall selinux-policy-targeted 重新安装selinux的策略。
网友评论