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

配置SElinux环境,将SELinux设置为enforcing

时间:2019-11-19 13:38:24      阅读:166      评论:0      收藏:0      [点我收藏+]

标签:ORC   iss   关闭   perm   控制   实现   sel   sed   强制   


SELinux是 美国国家安全局 (NSA) 对于 强制访问控制的实现 =》可以使root受限的权限
  关闭SELinux=》修改配置文件,永久生效;
    sed -i ‘s/SELINUX=enforcing/SELINUX=disabled‘ /etc/selinux/config
  查看selinux配置文件中的选项
    grep SELINUX= /etc/selinux/config
  关闭SELinux=》临时关闭
    setenforce 0
    0:permissive 只是提出警告,不阻止执行
    1:enforcing 开启selinux
  查看selinux状态
    getenforce

配置SElinux环境,将SELinux设置为enforcing

标签:ORC   iss   关闭   perm   控制   实现   sel   sed   强制   

原文地址:https://www.cnblogs.com/tslite/p/11888677.html

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