SELinux is preventing /usr/sbin/httpd from 'write' accesses on the directory /home/Miguel/localhost/advosys/temp. ***** Plugin catchall (100. confidence) suggests *************************** If you believe that httpd should be allowed write access on the temp 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 /usr/sbin/httpd /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:user_home_t:s0 Target Objects /home/Miguel/localhost/advosys/temp [ dir ] Source httpd Source Path /usr/sbin/httpd Port <Unknown> Host (removed) Source RPM Packages httpd-2.2.17-1.fc14 Target RPM Packages Policy RPM selinux-policy-3.9.7-19.fc14 Selinux Enabled True Policy Type targeted Enforcing Mode Permissive Host Name (removed) Platform Linux localhost.localdomain 2.6.35.10-74.fc14.x86_64 #1 SMP Thu Dec 23 16:04:50 UTC 2010 x86_64 x86_64 Alert Count 2 First Seen Wed 12 Jan 2011 06:54:25 PM BRST Last Seen Wed 12 Jan 2011 06:57:58 PM BRST Local ID f69e2b83-46be-4fd5-ba2a-1f78092ce866 Raw Audit Messages type=AVC msg=audit(1294865878.855:68): avc: denied { write } for pid=1593 comm="httpd" name="temp" dev=sda5 ino=10487956 scontext=system_u:system_r:httpd_t:s0 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=dir httpd,httpd_t,user_home_t,dir,write type=AVC msg=audit(1294865878.855:68): avc: denied { add_name } for pid=1593 comm="httpd" name="sess_2meh475kemfim65maf83cn8c00" scontext=system_u:system_r:httpd_t:s0 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=dir httpd,httpd_t,user_home_t,dir,write type=AVC msg=audit(1294865878.855:68): avc: denied { create } for pid=1593 comm="httpd" name="sess_2meh475kemfim65maf83cn8c00" scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r:user_home_t:s0 tclass=file httpd,httpd_t,user_home_t,dir,write type=AVC msg=audit(1294865878.855:68): avc: denied { write } for pid=1593 comm="httpd" name="sess_2meh475kemfim65maf83cn8c00" dev=sda5 ino=10490084 scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r:user_home_t:s0 tclass=file httpd,httpd_t,user_home_t,dir,write type=SYSCALL msg=audit(1294865878.855:68): arch=x86_64 syscall=open success=yes exit=ECHILD a0=7fff79ed8850 a1=42 a2=180 a3=6b35373468656d32 items=0 ppid=1562 pid=1593 auid=4294967295 uid=500 gid=48 euid=500 suid=500 fsuid=500 egid=48 sgid=48 fsgid=48 tty=(none) ses=4294967295 comm=httpd exe=/usr/sbin/httpd subj=system_u:system_r:httpd_t:s0 key=(null) httpd,httpd_t,user_home_t,dir,write #============= httpd_t ============== #!!!! The source type 'httpd_t' can write to a 'dir' of the following types: # passenger_var_run_t, tmp_t, var_t, tmpfs_t, httpd_log_t, httpd_tmp_t, httpd_cache_t, httpd_tmpfs_t, var_lib_t, var_run_t, dirsrvadmin_tmp_t, httpd_squirrelmail_t, var_log_t, dirsrv_var_log_t, dirsrv_var_run_t, httpd_var_lib_t, httpd_var_run_t, dirsrvadmin_config_t, squirrelmail_spool_t, var_lock_t, httpd_w3c_validator_ra_content_t, httpd_w3c_validator_rw_content_t, httpd_awstats_ra_content_t, httpd_awstats_rw_content_t, httpd_user_ra_content_t, httpd_user_rw_content_t, httpd_cobbler_ra_content_t, httpd_cobbler_rw_content_t, httpd_munin_ra_content_t, httpd_munin_rw_content_t, httpd_mojomojo_ra_content_t, httpd_mojomojo_rw_content_t, httpd_bugzilla_ra_content_t, httpd_bugzilla_rw_content_t, root_t, httpd_cvs_ra_content_t, httpd_cvs_rw_content_t, httpd_git_ra_content_t, httpd_git_rw_content_t, httpd_sys_ra_content_t, httpd_sys_rw_content_t, httpd_nagios_ra_content_t, httpd_nagios_rw_content_t, httpd_nutups_cgi_ra_content_t, httpd_nutups_cgi_rw_content_t, httpd_zarafa_ra_content_t, httpd_zarafa_rw_content_t, httpd_squid_ra_content_t, httpd_squid_rw_content_t, httpd_apcupsd_cgi_ra_content_t, httpd_apcupsd_cgi_rw_content_t, httpd_smokeping_cgi_ra_content_t, httpd_smokeping_cgi_rw_content_t, httpd_dirsrvadmin_ra_content_t, httpd_dirsrvadmin_rw_content_t, httpd_prewikka_ra_content_t, httpd_prewikka_rw_content_t allow httpd_t user_home_t:dir { write add_name }; allow httpd_t user_home_t:file { write create };
*** Bug 669200 has been marked as a duplicate of this bug. ***
If you want apache managing content within your homedir, you need to setup the labeling correctly. chcon -t httpd_user_rw_content_t /home/Miguel/localhost Will fix the problem.
*** Bug 669207 has been marked as a duplicate of this bug. ***
Thanks Daniel. Need to get used to SELinux Policies.