| Summary: | SELinux is preventing httpd from 'open' accesses on the file /var/www/html/phpvirtualbox/panes/chooser.html. | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Danie de Jager <danie.dejager> |
| Component: | selinux-policy | Assignee: | Lukas Vrabec <lvrabec> |
| Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 25 | CC: | dominick.grift, dwalsh, lvrabec, mgrepl, plautrba, pmoore, ssekidde |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Unspecified | ||
| Whiteboard: | abrt_hash:5290a260bb220fb3fcc8c6ca42e19ad82b7b954090a2515f4e8db3597c134173; | ||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-12-09 12:24:28 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
Hi, Please run following command to fix your issue: # restorecon -Rv /var/www/html/ Thanks. |
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