10day 系统的selinux服务程序优化

selinux服务对root用户权限进行控制
很多企业中:selinux服务默认关闭
centos6==centos7
临时关闭:
检查确认:
getenforce --- 确认selinux服务是否开启或是关闭的
如何关闭:
[root@oldboyedu ~]# setenforce
usage: setenforce [ Enforcing | Permissive | 1 | 0 ]
Enforcing 1 --- 临时开启selinux
Permissive 0 --- 临时关闭selinux

setenforce 0 --- 临时关闭selinux服务

永久关闭:
enforcing - SELinux security policy is enforced.
selinux服务处于正常开启状态
permissive - SELinux prints warnings instead of enforcing.
selinux服务被临时关闭了
disabled - No SELinux policy is loaded.
selinux服务彻底关闭
vi /etc/selinux/config
SELINUX=disabled
PS: 如果想让selinux配置文件生效,重启系统

猜你喜欢

转载自www.cnblogs.com/huangfeng666/p/12060629.html
今日推荐