Bug 231816

Summary: Selinux and squid cachemgr.cgi problem
Product: [Fedora] Fedora Reporter: Daniel Rowe <bart>
Component: selinux-policyAssignee: Daniel Walsh <dwalsh>
Status: CLOSED CURRENTRELEASE QA Contact: Ben Levenson <benl>
Severity: medium Docs Contact:
Priority: medium    
Version: 6CC: dwalsh
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Current Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-08-22 14:03:10 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:

Description Daniel Rowe 2007-03-12 10:28:52 UTC
Description of problem:

Selinux policy not allowing Squid's cache manager (cachemgr.cgi) to work.  


Version-Release number of selected component (if applicable):

squid-2.6.STABLE9-1.fc6
selinux-policy-targeted-2.4.6-41.fc6

How reproducible:

Every time.

Steps to Reproduce:

Access http://localhost/Squid/cgi-bin/cachemgr.cgi 
  
Actual results:

Fails to work with below in the audit.
avc: denied { read } for comm="prelink" dev=dm-0 egid=0 euid=0
exe="/usr/sbin/prelink" exit=-13 fsgid=0 fsuid=0 gid=0 items=0
name="cachemgr.cgi" pid=8455 scontext=system_u:system_r:prelink_t:s0-s0:c0.c1023
sgid=0 subj=system_u:system_r:prelink_t:s0-s0:c0.c1023 suid=0 tclass=file
tcontext=system_u:object_r:httpd_sys_content_t:s0 tty=(none) uid=0 

avc: denied { search } for comm="cachemgr.cgi" dev=dm-0 egid=48 euid=48
exe="/usr/lib64/squid/cachemgr.cgi" exit=-13 fsgid=48 fsuid=48 gid=48 items=0
name="squid" pid=2465 scontext=user_u:system_r:httpd_sys_script_t:s0 sgid=48
subj=user_u:system_r:httpd_sys_script_t:s0 suid=48 tclass=dir
tcontext=system_u:object_r:squid_conf_t:s0 tty=(none) uid=48 

Expected results:

Work.

Additional info:

Comment 1 Daniel Walsh 2007-03-20 15:54:53 UTC
Fixed in selinux-policy-2.4.6-46

Comment 2 Daniel Walsh 2007-08-22 14:03:10 UTC
Closed as all fixes are in the current release