| Summary: | SELinux is preventing /var/www/cgi-bin/cachemgr.cgi from 'search' accesses on the directory /etc/squid. | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Nivag <gavinflower> |
| Component: | squid | Assignee: | Michal Luscon <mluscon> |
| Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 19 | CC: | dominick.grift, dwalsh, gavinflower, henrik, jonathansteffan, mgrepl, mluscon, psimerda, thozza |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Unspecified | ||
| Whiteboard: | abrt_hash:a60d1e0c06e1d467c6cba239b89f7491eb144ab383ea733b5161b95af43449ae | ||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-04-28 10:07:08 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Nivag
2013-08-21 00:45:04 UTC
*** Bug 999247 has been marked as a duplicate of this bug. *** *** Bug 999253 has been marked as a duplicate of this bug. *** *** Bug 999264 has been marked as a duplicate of this bug. *** # chcon -t httpd_squid_script_exec_t /var/www/cgi-bin/cachemgr.cgi will fix it. What does $ rpm -qf /var/www/cgi-bin/cachemgr.cgi # rpm -qf /var/www/cgi-bin/cachemgr.cgi file /var/www/cgi-bin/cachemgr.cgi is not owned by any package N.B. I got the same answer before & after executing: chcon -t httpd_squid_script_exec_t /var/www/cgi-bin/cachemgr.cgi Is this your own CGI script? No - I assume cachemgr.cgi was installed by the Fedora Squid package, I have not even looked at it. # rpm -qf /var/www/cgi-bin/cachemgr.cgi file /var/www/cgi-bin/cachemgr.cgi is not owned by any package Looks like that file should be in /usr/lib64/squid/cachemgr.cgi But we should probably label in that location also, since that might be where the upstream package puts it. I presume you manually copied cachemgr.cgi into your /var/www/cgi-bin/ or installed squid from different source. Fedora package installs cachemgr.cgi into /usr/lib64/squid and you can access it on http://localhost/Squid/cgi-bin/cachemgr.cgi with selinux in enforcing mode. Feel free to reopen this bugzilla if I am wrong. |