linux的SELinux
作者:
小胖_20c7 | 来源:发表于
2019-06-19 10:44 被阅读0次SELinux的工作原理
限制的是进程与文件之间的权限关系

selinux.png
查看SELinux的工作状态
1 sestatus -v
2 getsebool -a
3 /etc/selinux/config
设置selinux
1 setenforce 0(or setenforce 1)
2 setsebool -P httpd_can_network_connect=1
3 /etc/selinux/config(SELINUX=disabled)
www的规则放行
1 iptables的放行
2 SELinux的放行:
getsebool -a | grep httpd
setsebool -P httpd_can_network_connect=1
restorecon -Rv /var/www/html,恢复缺省的context
本文标题:linux的SELinux
本文链接:https://www.haomeiwen.com/subject/nhjhqctx.html
网友评论