httpd_can_sendmail
啟動才可寄信。
[root@dywang tmp]# setsebool -P httpd_can_sendmail=1
[root@dywang tmp]# setenforce 0 [root@dywang tmp]# getenforce Permissive
[root@dywang tmp]# echo '' > /var/log/audit/audit.log [root@dywang tmp]# /etc/init.d/auditd restart
<run the javac from web>
[root@dywang tmp]# setenforce 1
[root@dywang tmp]# cat /var/log/audit/audit.log|audit2allow -M httpjava
[root@dywang tmp]# semodule -i httpjava.pp
[root@dywang tmp]# semodule -l | grep http httpdsudo 1.0 httpjava 1.0
[root@dywang tmp]# semodule -r httpjava.pp