Hide Forgot
SELinux is preventing /usr/sbin/httpd from 'read' accesses on the file /var/www/html/index.html. ***** Plugin restorecon (92.2 confidence) suggests ************************* If you want to fix the label. /var/www/html/index.html default label should be httpd_sys_content_t. Then you can run restorecon. Do # /sbin/restorecon -v /var/www/html/index.html ***** Plugin catchall_boolean (7.83 confidence) suggests ******************* If you want to allow httpd to read user content Then you must tell SELinux about this by enabling the 'httpd_read_user_content' boolean. Do setsebool -P httpd_read_user_content 1 ***** Plugin catchall (1.41 confidence) suggests *************************** If you believe that httpd should be allowed read access on the index.html file 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 httpd /var/log/audit/audit.log | audit2allow -M mypol # semodule -i mypol.pp Additional Information: Source Context system_u:system_r:httpd_t:SystemLow Target Context staff_u:object_r:user_home_t:SystemLow Target Objects /var/www/html/index.html [ file ] Source httpd Source Path /usr/sbin/httpd Port <Unknown> Host (removed) Source RPM Packages httpd-2.2.17-7.fc15 Target RPM Packages Policy RPM selinux-policy-3.9.13-9.fc15 Selinux Enabled True Policy Type targeted Enforcing Mode Enforcing Host Name (removed) Platform Linux localhost.localdomain 2.6.38-0.rc2.git9.1.fc15.x86_64 #1 SMP Tue Feb 1 03:14:13 UTC 2011 x86_64 x86_64 Alert Count 1 First Seen Fri 04 Feb 2011 03:24:05 PM EST Last Seen Fri 04 Feb 2011 03:24:05 PM EST Local ID fa20fb54-d44e-4aa8-8fd8-5f2b756bd15a Raw Audit Messages type=AVC msg=audit(1296851045.824:3603): avc: denied { read } for pid=27517 comm="httpd" name="index.html" dev=dm-1 ino=5906652 scontext=system_u:system_r:httpd_t:s0 tcontext=staff_u:object_r:user_home_t:s0 tclass=file type=SYSCALL msg=audit(1296851045.824:3603): arch=x86_64 syscall=open success=no exit=EACCES a0=7fb4ce4d4260 a1=80000 a2=0 a3=7fff21e76620 items=1 ppid=27511 pid=27517 auid=4294967295 uid=48 gid=48 euid=48 suid=48 fsuid=48 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) type=CWD msg=audit(1296851045.824:3603): cwd=/ type=PATH msg=audit(1296851045.824:3603): item=0 name=/var/www/html/index.html inode=5906652 dev=fd:01 mode=0100644 ouid=0 ogid=0 rdev=00:00 obj=staff_u:object_r:user_home_t:s0 Hash: httpd,httpd_t,user_home_t,file,read audit2allow #============= httpd_t ============== #!!!! This avc can be allowed using the boolean 'httpd_read_user_content' allow httpd_t user_home_t:file read; audit2allow -R #============= httpd_t ============== #!!!! This avc can be allowed using the boolean 'httpd_read_user_content' allow httpd_t user_home_t:file read;