SELinux一共有3种状态,分别是Enforcing,Permissive和Disabled状态。 Enforcing:强制模式。代表SELinux在运行中,且已经开始限制domain/type之间的验证关系 Permissive:宽容模式。代表SELinux在运行中,不过不会限制 ...
方法 : vim etc selinux config 把SELINUX enforcing注释掉 SELINUX enforcing 再新加一行:SELINUX disabled 保存,关闭,重启系统 或直接使用命令修改: sed i s SELINUX enforcing SELINUX disabled etc selinux config setenforce 方法 : 快速关闭SELIN ...
2021-10-21 14:57 0 137 推荐指数:
SELinux一共有3种状态,分别是Enforcing,Permissive和Disabled状态。 Enforcing:强制模式。代表SELinux在运行中,且已经开始限制domain/type之间的验证关系 Permissive:宽容模式。代表SELinux在运行中,不过不会限制 ...
SElinux是强制访问控制(MAC)安全系统,是linux历史上最杰出的新安全系统。对于linux安全模块来说,SElinux的功能是最全面的,测试也是最充分的,这是一种基于内核的安全系统。 1、SElinux的状态 命令"getenforce"可以查看SElinux ...
临时关闭selinux: 获取当前selinux状态 getenforce Enforcing为开启,Permissive为关闭 临时关闭:setenforce 0 永久关闭selinux: vim /etc/sysconfig/selinux SELINUX ...
[root@XM ~]#cat /etc/selinux/config ##selinux的路径 [root@XM ~]#sed 's#SELINUX=enforcing#SELINX=disabled#g' /etc/selinux/config ##修改加-i [root@XM ...
第一种临时关闭-重启服务器失效[root@oldboyedu-01 ~]# #查询selinux状态[root@oldboyedu-01 ~]# getenforce Enforcing[root@oldboyedu-01 ~]# #enforcing selinux正在 ...
selinux防火墙状态,如: setenforce 0用于关闭selinux防火墙,但重启后失效 ...
一、查看SELinux状态: 1、我们可以通过查看配置文件的命令 cat /etc/selinux/config 来查看状态 发现SELinux共有3个状态enforcing (执行中)、permissive (不执行但产生警告)、disabled(关闭)。 2,也可以用这个命令检查 ...
selinux防火墙状态,如: setenforce 0用于关闭selinux防火墙,但重启后失效 ...