标签:ssi 关闭 文件 load min loaded controls 临时 protected
1、vim /etc/selinux/config Selinux的配置文件
# 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=enforcing
# SELINUXTYPE= can take one of these two values:
# targeted - Targeted processes are protected, 目标流程受保护
# minimum - Modification of targeted policy. Only selected processes are protected. 选定的受保护
# mls - Multi Level Security protection. 多级安全保护
SELINUXTYPE=targeted
enforcing:强制模式,代表Selinux运行中,
permissive:
disabled:
临时更改Seinux的模式:
setcnforce 0 临时关闭
setenforce 1 临时打开
查看selinux状态
sestatus
Selinux的三种模式宽容模式(permissive)强制模式(enforcing)关闭(disabled)
标签:ssi 关闭 文件 load min loaded controls 临时 protected
原文地址:https://www.cnblogs.com/thlchina/p/10990949.html