Bug 725189 - SELinux is preventing /usr/sbin/squid from 'read' accesses on the file unix.
Summary: SELinux is preventing /usr/sbin/squid from 'read' accesses on the file unix.
Keywords:
Status: CLOSED INSUFFICIENT_DATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 14
Hardware: i386
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:771a3b33dcc...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-07-23 21:10 UTC by geminic86
Modified: 2011-10-15 19:42 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-10-08 20:19:18 UTC
Type: ---


Attachments (Terms of Use)

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?


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