Additional info: libreport version: 2.0.18 kernel: 3.6.5-2.fc18.i686.PAE description: :SELinux is preventing /usr/sbin/php-fpm from 'write' accesses on the directory /home/mikhail/www/bes/logs. : :***** Plugin catchall (100. 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:phpfpm_t:s0 :Target Context unconfined_u:object_r:httpd_user_ra_content_t:s0 :Target Objects /home/mikhail/www/bes/logs [ dir ] :Source php-fpm :Source Path /usr/sbin/php-fpm :Port <Unknown> :Host (removed) :Source RPM Packages php-fpm-5.4.8-1.fc18.i686 :Target RPM Packages :Policy RPM selinux-policy-3.11.1-46.fc18.noarch :Selinux Enabled True :Policy Type targeted :Enforcing Mode Enforcing :Host Name (removed) :Platform Linux (removed) 3.6.5-2.fc18.i686.PAE #1 SMP Thu : Nov 1 00:52:47 UTC 2012 i686 i686 :Alert Count 1 :First Seen 2012-11-04 01:37:26 YEKT :Last Seen 2012-11-04 01:37:26 YEKT :Local ID 05542f89-f412-4a17-917e-df9bdd9875ef : :Raw Audit Messages :type=AVC msg=audit(1351971446.528:619): avc: denied { write } for pid=2447 comm="php-fpm" name="logs" dev="sdb" ino=169215567 scontext=system_u:system_r:phpfpm_t:s0 tcontext=unconfined_u:object_r:httpd_user_ra_content_t:s0 tclass=dir : : :type=AVC msg=audit(1351971446.528:619): avc: denied { add_name } for pid=2447 comm="php-fpm" name="127.0.0.1-error.log" scontext=system_u:system_r:phpfpm_t:s0 tcontext=unconfined_u:object_r:httpd_user_ra_content_t:s0 tclass=dir : : :type=AVC msg=audit(1351971446.528:619): avc: denied { create } for pid=2447 comm="php-fpm" name="127.0.0.1-error.log" scontext=system_u:system_r:phpfpm_t:s0 tcontext=system_u:object_r:httpd_user_ra_content_t:s0 tclass=file : : :type=AVC msg=audit(1351971446.528:619): avc: denied { append open } for pid=2447 comm="php-fpm" path="/home/mikhail/www/bes/logs/127.0.0.1-error.log" dev="sdb" ino=169216074 scontext=system_u:system_r:phpfpm_t:s0 tcontext=system_u:object_r:httpd_user_ra_content_t:s0 tclass=file : : :type=SYSCALL msg=audit(1351971446.528:619): arch=i386 syscall=open success=yes exit=ENOEXEC a0=94b98a8 a1=441 a2=1b6 a3=0 items=0 ppid=2442 pid=2447 auid=4294967295 uid=991 gid=988 euid=991 suid=991 fsuid=991 egid=988 sgid=988 fsgid=988 tty=(none) ses=4294967295 comm=php-fpm exe=/usr/sbin/php-fpm subj=system_u:system_r:phpfpm_t:s0 key=(null) : :Hash: php-fpm,phpfpm_t,httpd_user_ra_content_t,dir,write : :audit2allow : :#============= phpfpm_t ============== :#!!!! The source type 'phpfpm_t' can write to a 'dir' of the following types: :# phpfpm_log_t, var_run_t, phpfpm_var_run_t : :allow phpfpm_t httpd_user_ra_content_t:dir { write add_name }; :allow phpfpm_t httpd_user_ra_content_t:file { create open append }; : :audit2allow -R : :#============= phpfpm_t ============== :#!!!! The source type 'phpfpm_t' can write to a 'dir' of the following types: :# phpfpm_log_t, var_run_t, phpfpm_var_run_t : :allow phpfpm_t httpd_user_ra_content_t:dir { write add_name }; :allow phpfpm_t httpd_user_ra_content_t:file { create open append }; :
Created attachment 637650 [details] File: type
Created attachment 637651 [details] File: hashmarkername
*** This bug has been marked as a duplicate of bug 872839 ***