Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 231816 - Selinux and squid cachemgr.cgi problem
Selinux and squid cachemgr.cgi problem
Product: Fedora
Classification: Fedora
Component: selinux-policy (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Daniel Walsh
Ben Levenson
Depends On:
  Show dependency treegraph
Reported: 2007-03-12 06:28 EDT by Daniel Rowe
Modified: 2007-11-30 17:11 EST (History)
1 user (show)

See Also:
Fixed In Version: Current
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-08-22 10:03:10 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Daniel Rowe 2007-03-12 06:28:52 EDT
Description of problem:

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

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


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:


Additional info:
Comment 1 Daniel Walsh 2007-03-20 11:54:53 EDT
Fixed in selinux-policy-2.4.6-46
Comment 2 Daniel Walsh 2007-08-22 10:03:10 EDT
Closed as all fixes are in the current release

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