Bug 666104
| Summary: | SELinux is preventing /var/www/cgi-bin/cachemgr.cgi from 'search' accesses on the directory /etc/squid. | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Nivag <gavin42> |
| Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> |
| Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | low | ||
| Version: | 14 | CC: | dwalsh, mgrepl |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | setroubleshoot_trace_hash:a60d1e0c06e1d467c6cba239b89f7491eb144ab383ea733b5161b95af43449ae | ||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2010-12-30 13:57:49 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
*** This bug has been marked as a duplicate of bug 666103 *** |
SELinux is preventing /var/www/cgi-bin/cachemgr.cgi from 'search' accesses on the directory /etc/squid. ***** Plugin catchall (100. confidence) suggests *************************** If you believe that cachemgr.cgi should be allowed search access on the squid 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 /var/www/cgi-bin/cachemgr.cgi /var/log/audit/audit.log | audit2allow -M mypol # semodule -i mypol.pp Additional Information: Source Context system_u:system_r:httpd_sys_script_t:s0 Target Context system_u:object_r:squid_conf_t:s0 Target Objects /etc/squid [ dir ] Source cachemgr.cgi Source Path /var/www/cgi-bin/cachemgr.cgi Port <Unknown> Host (removed) Source RPM Packages Target RPM Packages squid-3.1.9-3.fc14 Policy RPM selinux-policy-3.9.7-19.fc14 Selinux Enabled True Policy Type targeted Enforcing Mode Permissive Host Name (removed) Platform Linux (removed) 2.6.35.10-74.fc14.x86_64 #1 SMP Thu Dec 23 16:04:50 UTC 2010 x86_64 x86_64 Alert Count 1 First Seen Wed 29 Dec 2010 02:37:39 PM NZDT Last Seen Wed 29 Dec 2010 02:37:39 PM NZDT Local ID 519c802d-4f36-4ce6-84be-88ebf3d29422 Raw Audit Messages type=AVC msg=audit(1293586659.244:48851): avc: denied { search } for pid=7217 comm="cachemgr.cgi" name="squid" dev=md2 ino=42731335 scontext=system_u:system_r:httpd_sys_script_t:s0 tcontext=system_u:object_r:squid_conf_t:s0 tclass=dir cachemgr.cgi,httpd_sys_script_t,squid_conf_t,dir,search type=AVC msg=audit(1293586659.244:48851): avc: denied { read } for pid=7217 comm="cachemgr.cgi" name="cachemgr.conf" dev=md2 ino=42731333 scontext=system_u:system_r:httpd_sys_script_t:s0 tcontext=system_u:object_r:squid_conf_t:s0 tclass=file cachemgr.cgi,httpd_sys_script_t,squid_conf_t,dir,search type=AVC msg=audit(1293586659.244:48851): avc: denied { open } for pid=7217 comm="cachemgr.cgi" name="cachemgr.conf" dev=md2 ino=42731333 scontext=system_u:system_r:httpd_sys_script_t:s0 tcontext=system_u:object_r:squid_conf_t:s0 tclass=file cachemgr.cgi,httpd_sys_script_t,squid_conf_t,dir,search type=SYSCALL msg=audit(1293586659.244:48851): arch=x86_64 syscall=open success=yes exit=ESRCH a0=7f0ee2f5086f a1=0 a2=1b6 a3=0 items=0 ppid=2633 pid=7217 auid=4294967295 uid=48 gid=48 euid=48 suid=48 fsuid=48 egid=48 sgid=48 fsgid=48 tty=(none) ses=4294967295 comm=cachemgr.cgi exe=/var/www/cgi-bin/cachemgr.cgi subj=system_u:system_r:httpd_sys_script_t:s0 key=(null) cachemgr.cgi,httpd_sys_script_t,squid_conf_t,dir,search #============= httpd_sys_script_t ============== allow httpd_sys_script_t squid_conf_t:dir search; allow httpd_sys_script_t squid_conf_t:file { read open };