Bug 1480468 - SELinux is preventing cachemgr.cgi from 'open' accesses on the file /etc/squid/cachemgr.conf.
SELinux is preventing cachemgr.cgi from 'open' accesses on the file /etc/squi...
Status: NEW
Product: Fedora
Classification: Fedora
Component: selinux-policy (Show other bugs)
26
x86_64 Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Lukas Vrabec
Fedora Extras Quality Assurance
abrt_hash:38f63ded4f7976b8adb87d4ac00...
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2017-08-11 04:26 EDT by Nivag
Modified: 2017-08-11 04:26 EDT (History)
8 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Nivag 2017-08-11 04:26:23 EDT
Description of problem:
SELinux is preventing cachemgr.cgi from 'open' accesses on the file /etc/squid/cachemgr.conf.

*****  Plugin catchall (100. confidence) suggests   **************************

If you believe that cachemgr.cgi should be allowed open access on the cachemgr.conf file 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:
# ausearch -c 'cachemgr.cgi' --raw | audit2allow -M my-cachemgrcgi
# semodule -X 300 -i my-cachemgrcgi.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/cachemgr.conf [ file ]
Source                        cachemgr.cgi
Source Path                   cachemgr.cgi
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    <Unknown>
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.12.5-300.fc26.x86_64 #1 SMP Mon
                              Aug 7 15:27:25 UTC 2017 x86_64 x86_64
Alert Count                   19
First Seen                    2017-06-22 09:23:09 NZST
Last Seen                     2017-08-11 20:13:20 NZST
Local ID                      3c1aecdb-ade9-4e1a-ac8f-82a396dc8521

Raw Audit Messages
type=AVC msg=audit(1502439200.818:1527): avc:  denied  { open } for  pid=9131 comm="cachemgr.cgi" path="/etc/squid/cachemgr.conf" dev="dm-0" ino=1052694 scontext=system_u:system_r:httpd_sys_script_t:s0 tcontext=system_u:object_r:squid_conf_t:s0 tclass=file permissive=0


Hash: cachemgr.cgi,httpd_sys_script_t,squid_conf_t,file,open


Additional info:
component:      selinux-policy
reporter:       libreport-2.9.1
hashmarkername: setroubleshoot
kernel:         4.12.5-300.fc26.x86_64
type:           libreport

Potential duplicate: bug 999253

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