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

SELinux

时间:2018-02-23 19:11:56      阅读:158      评论:0      收藏:0      [点我收藏+]

标签:bsp   linux   内核   永久   conf   强制   ace   pytho   indent   

SELinux,Security-Enhanced Linux

    基于内核的,强制安全保护机制

1.selinux三种状态

disabled   #彻底禁用
enforcing  #强制启用
permissive #宽松模式

2.查看selinux状态

getenforce   #查看状态
setenforce 1 #临时开启
setenforce 0 #临时关闭

3.永久关闭selinux(除非有必要才开启)

vim /etc/selinux/config
enforcing --->  disable
reboot  #重启后生效


SELinux

标签:bsp   linux   内核   永久   conf   强制   ace   pytho   indent   

原文地址:http://blog.51cto.com/creatoryuan/2072422

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