Bug 666104 - SELinux is preventing /var/www/cgi-bin/cachemgr.cgi from 'search' accesses on the directory /etc/squid.
Summary: SELinux is preventing /var/www/cgi-bin/cachemgr.cgi from 'search' accesses on...
Keywords:
Status: CLOSED DUPLICATE of bug 666103
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 14
Hardware: x86_64
OS: Linux
low
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:a60d1e0c06e...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-12-29 01:52 UTC by Nivag
Modified: 2010-12-30 13:57 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2010-12-30 13:57:49 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Nivag 2010-12-29 01:52:06 UTC
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 };

Comment 1 Daniel Walsh 2010-12-30 13:57:49 UTC

*** This bug has been marked as a duplicate of bug 666103 ***


Note You need to log in before you can comment on or make changes to this bug.