Bug 726012

Summary: [abrt] (null): SELinux is preventing /bin/ping from 'read' accesses on the rawip_socket Unknown.
Product: [Fedora] Fedora Reporter: Matěj Cepl <mcepl>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: dominick.grift, dwalsh, mcepl, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:1eeb8e3ff742ebdd26d1cb430a8ffa23a16d7c5cd3ff92ba6987b1a0064e35c1
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-07-27 13:21:35 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 Matěj Cepl 2011-07-27 10:21:05 UTC
abrt version: 2.0.5
executable:     /usr/bin/python
hashmarkername: setroubleshoot
kernel:         3.0.0-1.fc16.x86_64
reason:         SELinux is preventing /bin/ping from 'read' accesses on the rawip_socket Unknown.
time:           Wed Jul 27 12:20:53 2011

description:
:SELinux is preventing /bin/ping from 'read' accesses on the rawip_socket Unknown.
:
:Yes, I believe even user_u should be able to run ping, but maybe that's just me.
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that ping should be allowed read access on the Unknown rawip_socket 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 ping /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                user_u:user_r:user_t:s0
:Target Context                user_u:user_r:user_t:s0
:Target Objects                Unknown [ rawip_socket ]
:Source                        ping
:Source Path                   /bin/ping
:Port                          <Neznámé>
:Host                          (removed)
:Source RPM Packages           iputils-20101006-9.fc16
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-9.fc16
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Permissive
:Host Name                     (removed)
:Platform                      Linux (removed) 3.0.0-1.fc16.x86_64 #1 SMP Fri Jul
:                              22 16:09:29 UTC 2011 x86_64 x86_64
:Alert Count                   26
:First Seen                    Čt 21. červenec 2011, 12:41:04 CEST
:Last Seen                     St 27. červenec 2011, 07:52:55 CEST
:Local ID                      9bfc4472-a4ac-444a-8bc5-30612a4d4d42
:
:Raw Audit Messages
:type=AVC msg=audit(1311745975.921:519): avc:  denied  { read } for  pid=4229 comm="ping" lport=1 scontext=user_u:user_r:user_t:s0 tcontext=user_u:user_r:user_t:s0 tclass=rawip_socket
:
:
:type=SYSCALL msg=audit(1311745975.921:519): arch=x86_64 syscall=recvmsg success=yes exit=EILSEQ a0=3 a1=7fffbb63d020 a2=0 a3=7fffbb63cda0 items=0 ppid=3750 pid=4229 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=pts0 ses=1 comm=ping exe=/bin/ping subj=user_u:user_r:user_t:s0 key=(null)
:
:Hash: ping,user_t,user_t,rawip_socket,read
:
:audit2allow
:
:#============= user_t ==============
:allow user_t self:rawip_socket read;
:
:audit2allow -R
:
:#============= user_t ==============
:allow user_t self:rawip_socket read;
:

Comment 1 Miroslav Grepl 2011-07-27 13:21:35 UTC
Well this is not allowed by default. 

# getsebool -a |grep ping
user_ping --> off