Description of problem: SELinux is preventing /usr/sbin/php-fpm from 'write' accesses on the directory logs. ***** Plugin catchall_boolean (89.3 confidence) suggests ******************* If you want to allow httpd to unified Then you must tell SELinux about this by enabling the 'httpd_unified' boolean. You can read 'None' man page for more details. Do setsebool -P httpd_unified 1 ***** Plugin catchall (11.6 confidence) suggests *************************** If you believe that php-fpm should be allowed write access on the logs 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 php-fpm /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 unconfined_u:object_r:httpd_user_content_t:s0 Target Objects logs [ dir ] Source php-fpm Source Path /usr/sbin/php-fpm Port <Unknown> Host (removed) Source RPM Packages php-fpm-5.5.0-2.fc19.x86_64 Target RPM Packages Policy RPM selinux-policy-3.12.1-65.fc19.noarch Selinux Enabled True Policy Type targeted Enforcing Mode Enforcing Host Name (removed) Platform Linux (removed) 3.9.9-302.fc19.x86_64 #1 SMP Sat Jul 6 13:41:07 UTC 2013 x86_64 x86_64 Alert Count 4 First Seen 2013-07-22 01:46:33 YEKT Last Seen 2013-07-22 01:46:34 YEKT Local ID 92f3acd9-e9b0-4ddd-ba67-d1be741549f8 Raw Audit Messages type=AVC msg=audit(1374435994.804:496): avc: denied { write } for pid=601 comm="php-fpm" name="logs" dev="sdb" ino=164890387 scontext=system_u:system_r:httpd_t:s0 tcontext=unconfined_u:object_r:httpd_user_content_t:s0 tclass=dir type=SYSCALL msg=audit(1374435994.804:496): arch=x86_64 syscall=open success=no exit=EACCES a0=7fe1bfdbf130 a1=441 a2=1b6 a3=1 items=0 ppid=537 pid=601 auid=4294967295 uid=990 gid=989 euid=990 suid=990 fsuid=990 egid=989 sgid=989 fsgid=989 ses=4294967295 tty=(none) comm=php-fpm exe=/usr/sbin/php-fpm subj=system_u:system_r:httpd_t:s0 key=(null) Hash: php-fpm,httpd_t,httpd_user_content_t,dir,write Additional info: reporter: libreport-2.1.5 hashmarkername: setroubleshoot kernel: 3.9.9-302.fc19.x86_64 type: libreport Potential duplicate: bug 927268
*** This bug has been marked as a duplicate of bug 927268 ***
Could you add "Another option" to SELinux aler browser which would be to change the label for dir which occurs this alert to httpd_user_rw_content_t???