Hide Forgot
SELinux is preventing /usr/sbin/sendmail.sendmail from 'getattr' accesses on the directory /etc/mail. ***** Plugin httpd_can_sendmail (91.4 confidence) suggests ***************** If you want to allow httpd to send mail Then you must setup SELinux to allow this Do setsebool -P httpd_can_sendmail=1 ***** Plugin catchall (9.59 confidence) suggests *************************** If you believe that sendmail.sendmail should be allowed getattr access on the mail directory by default. Then you should report this as a bug. You can generate a local policy module to allow this access. Do allow this access for now by executing: # grep sendmail /var/log/audit/audit.log | audit2allow -M mypol # semodule -i mypol.pp Additional Information: Source Context system_u:system_r:httpd_t:s0 Target Context system_u:object_r:etc_mail_t:s0 Target Objects /etc/mail [ dir ] Source sendmail Source Path /usr/sbin/sendmail.sendmail Port <Unknown> Host (removed) Source RPM Packages sendmail-8.14.5-1.fc15 Target RPM Packages sendmail-8.14.5-1.fc15 Policy RPM selinux-policy-3.9.16-34.fc15 Selinux Enabled True Policy Type targeted Enforcing Mode Enforcing Host Name (removed) Platform Linux (removed) 2.6.38.8-35.fc15.x86_64 #1 SMP Wed Jul 6 13:58:54 UTC 2011 x86_64 x86_64 Alert Count 1 First Seen Tue 26 Jul 2011 03:13:45 PM PDT Last Seen Tue 26 Jul 2011 03:13:45 PM PDT Local ID 317124ed-c422-4b3a-8220-7fd0a0174b09 Raw Audit Messages type=AVC msg=audit(1311718425.515:420): avc: denied { getattr } for pid=9464 comm="sendmail" path="/etc/mail" dev=dm-2 ino=63462 scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r:etc_mail_t:s0 tclass=dir type=SYSCALL msg=audit(1311718425.515:420): arch=x86_64 syscall=lstat success=no exit=EACCES a0=7fff383b8b00 a1=7fff383b8a70 a2=7fff383b8a70 a3=7fff383b87a0 items=0 ppid=9191 pid=9464 auid=4294967295 uid=48 gid=48 euid=48 suid=48 fsuid=48 egid=51 sgid=51 fsgid=51 tty=(none) ses=4294967295 comm=sendmail exe=/usr/sbin/sendmail.sendmail subj=system_u:system_r:httpd_t:s0 key=(null) Hash: sendmail,httpd_t,etc_mail_t,dir,getattr audit2allow #============= httpd_t ============== allow httpd_t etc_mail_t:dir getattr; audit2allow -R #============= httpd_t ============== allow httpd_t etc_mail_t:dir getattr;
***** Plugin httpd_can_sendmail (91.4 confidence) suggests ***************** If you want to allow httpd to send mail Then you must setup SELinux to allow this Do setsebool -P httpd_can_sendmail=1
Did that. And the issue is solved. Thanks.