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

Posted thlchina

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Selinux的三种模式宽容模式(permissive)强制模式(enforcing)关闭(disabled)相关的知识,希望对你有一定的参考价值。

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)的主要内容,如果未能解决你的问题,请参考以下文章

Android 逆向selinux 进程保护 ( selinux 进程保护 | 宽容模式 Permissive | 强制模式 Enforcing )

SELinux 宽容模式(permissive) 强制模式(enforcing) 关闭(disabled)

selinux 的使用

linux关闭SElinux

vsftpd服务程序的三种认证模式

关闭SELinux...