Hide Forgot
Description of problem: SELinux is preventing httpd from 'open' accesses on the file /var/www/html/phpvirtualbox/panes/chooser.html. ***** Plugin restorecon (92.2 confidence) suggests ************************ If you want to fix the label. /var/www/html/phpvirtualbox/panes/chooser.html default label should be httpd_sys_content_t. Then you can run restorecon. Do # /sbin/restorecon -v /var/www/html/phpvirtualbox/panes/chooser.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. You can read 'None' man page for more details. Do setsebool -P httpd_read_user_content 1 ***** Plugin catchall (1.41 confidence) suggests ************************** If you believe that httpd should be allowed open access on the chooser.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: # ausearch -c 'httpd' --raw | audit2allow -M my-httpd # semodule -X 300 -i my-httpd.pp Additional Information: Source Context system_u:system_r:httpd_t:s0 Target Context unconfined_u:object_r:user_home_t:s0 Target Objects /var/www/html/phpvirtualbox/panes/chooser.html [ file ] Source httpd Source Path httpd Port <Unknown> Host (removed) Source RPM Packages Target RPM Packages Policy RPM selinux-policy-3.13.1-191.20.fc24.noarch Selinux Enabled True Policy Type targeted Enforcing Mode Permissive Host Name (removed) Platform Linux (removed) 4.8.6-201.fc24.x86_64 #1 SMP Thu Nov 3 14:38:57 UTC 2016 x86_64 x86_64 Alert Count 11 First Seen 2016-11-17 10:35:38 SAST Last Seen 2016-11-17 11:01:08 SAST Local ID aaa06534-16aa-4ff0-89f5-7f753120a4f6 Raw Audit Messages type=AVC msg=audit(1479373268.732:1353): avc: denied { open } for pid=22530 comm="httpd" path="/var/www/html/phpvirtualbox/panes/chooser.html" dev="dm-1" ino=1184811 scontext=system_u:system_r:httpd_t:s0 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=1 Hash: httpd,httpd_t,user_home_t,file,open Version-Release number of selected component: selinux-policy-3.13.1-191.20.fc24.noarch Additional info: reporter: libreport-2.8.0 hashmarkername: setroubleshoot kernel: 4.8.11-300.fc25.x86_64 type: libreport Potential duplicate: bug 1238817
Hi, Please run following command to fix your issue: # restorecon -Rv /var/www/html/ Thanks.