SELinux boolean操作

 •  Filed under centos, centos7, selinux
查询boolean状态
sudo sestatus -b

或者

sudo sestatus -b | grep -i sendmail
设置boolean
sudo setsebool -P $boolean名 $1或0

如允许httpd发送邮件

sudo setsebool -P httpd_can_sendmail 1