码迷,mamicode.com
首页 > 系统相关 > 详细

Selinux的三种模式宽容模式(permissive)强制模式(enforcing)关闭(disabled)

时间:2019-06-08 16:24:34      阅读:646      评论:0      收藏:0      [点我收藏+]

标签: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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!