Bug 725189

Summary: SELinux is preventing /usr/sbin/squid from 'read' accesses on the file unix.
Product: [Fedora] Fedora Reporter: geminic86
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED INSUFFICIENT_DATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 14CC: dominick.grift, dwalsh, geminic86, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:771a3b33dccfabecfb77a04e390e393832dc308f61e450c0a38549896bdec8fe
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-10-08 20:19:18 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description geminic86 2011-07-23 21:10:47 UTC
SELinux is preventing /usr/sbin/squid from 'read' accesses on the file unix.

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

If you believe that squid should be allowed read access on the unix 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:
# grep squid /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:squid_t:SystemLow
Target Context                system_u:object_r:proc_net_t:SystemLow
Target Objects                unix [ file ]
Source                        squid
Source Path                   /usr/sbin/squid
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           squid-3.1.12-1.fc14
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.7-42.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 2.6.35.13-92.fc14.i686 #1 SMP Sat May
                              21 17:39:42 UTC 2011 i686 i686
Alert Count                   1
First Seen                    Sat 23 Jul 2011 04:44:31 PM EDT
Last Seen                     Sat 23 Jul 2011 04:44:31 PM EDT
Local ID                      f8cd01d3-d033-4679-b741-bba06345a00d

Raw Audit Messages
type=AVC msg=audit(1311453871.949:248): avc:  denied  { read } for  pid=3430 comm="squid" name="unix" dev=proc ino=4026531987 scontext=system_u:system_r:squid_t:s0 tcontext=system_u:object_r:proc_net_t:s0 tclass=file


type=SYSCALL msg=audit(1311453871.949:248): arch=i386 syscall=access success=no exit=EACCES a0=bfea915f a1=4 a2=ef6ff4 a3=bfea9220 items=0 ppid=3428 pid=3430 auid=4294967295 uid=0 gid=23 euid=23 suid=0 fsuid=23 egid=23 sgid=23 fsgid=23 tty=(none) ses=4294967295 comm=squid exe=/usr/sbin/squid subj=system_u:system_r:squid_t:s0 key=(null)

Hash: squid,squid_t,proc_net_t,file,read

audit2allow

#============= squid_t ==============
allow squid_t proc_net_t:file read;

audit2allow -R

#============= squid_t ==============
allow squid_t proc_net_t:file read;

Comment 1 Miroslav Grepl 2011-07-25 14:15:44 UTC
Did it happen by default or did you enable an option in squid config file?