Bug 919973 - SELinux is preventing /usr/bin/ping from 'read' accesses on the file /proc/<pid>/net/dev.
Summary: SELinux is preventing /usr/bin/ping from 'read' accesses on the file /proc/<p...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 17
Hardware: i686
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:a04f86de2971943f93f7ffe1684...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-03-11 03:29 UTC by WenbinChen
Modified: 2013-05-04 00:03 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-05-04 00:03:38 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description WenbinChen 2013-03-11 03:29:00 UTC
Description of problem:
SELinux is preventing /usr/bin/ping from 'read' accesses on the file /proc/<pid>/net/dev.

*****  Plugin leaks (86.2 confidence) suggests  ******************************

If you want to ignore ping trying to read access the dev file, because you believe it should not need this access.
Then you should report this as a bug.  
You can generate a local policy module to dontaudit this access.
Do
# grep /usr/bin/ping /var/log/audit/audit.log | audit2allow -D -M mypol
# semodule -i mypol.pp

*****  Plugin catchall (14.7 confidence) suggests  ***************************

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

Additional Information:
Source Context                system_u:system_r:ping_t:s0
Target Context                system_u:object_r:proc_net_t:s0
Target Objects                /proc/<pid>/net/dev [ file ]
Source                        ping
Source Path                   /usr/bin/ping
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           iputils-20101006-16.fc17.i686
Target RPM Packages           
Policy RPM                    selinux-policy-3.10.0-167.fc17.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 3.7.9-104.fc17.i686.PAE #1 SMP Sun
                              Feb 24 19:27:47 UTC 2013 i686 i686
Alert Count                   1
First Seen                    2013-03-11 11:27:13 CST
Last Seen                     2013-03-11 11:27:13 CST
Local ID                      5184a3ea-2346-46a9-855e-5d2e52e262bc

Raw Audit Messages
type=AVC msg=audit(1362972433.381:94): avc:  denied  { read } for  pid=2353 comm="ping" path="/proc/1297/net/dev" dev="proc" ino=4026531972 scontext=system_u:system_r:ping_t:s0 tcontext=system_u:object_r:proc_net_t:s0 tclass=file


type=SYSCALL msg=audit(1362972433.381:94): arch=i386 syscall=execve success=yes exit=0 a0=82e5188 a1=82e5508 a2=82e6438 a3=82e5508 items=0 ppid=2335 pid=2353 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 ses=4294967295 tty=(none) comm=ping exe=/usr/bin/ping subj=system_u:system_r:ping_t:s0 key=(null)

Hash: ping,ping_t,proc_net_t,file,read

audit2allow

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

audit2allow -R

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


Additional info:
hashmarkername: setroubleshoot
kernel:         3.7.9-104.fc17.i686.PAE
type:           libreport

Comment 1 Daniel Walsh 2013-03-11 16:54:34 UTC
This looks like a leak, but we might as well allow it.

5e61b7ba2ced76dea8bed11ffd24a279163255e6 allows this in Rawhide.

Comment 2 Miroslav Grepl 2013-03-12 10:01:19 UTC
back proted.

Comment 3 Fedora Update System 2013-04-04 08:30:57 UTC
selinux-policy-3.10.0-169.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/selinux-policy-3.10.0-169.fc17

Comment 4 Fedora Update System 2013-04-05 23:21:22 UTC
Package selinux-policy-3.10.0-169.fc17:
* should fix your issue,
* was pushed to the Fedora 17 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing selinux-policy-3.10.0-169.fc17'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-5001/selinux-policy-3.10.0-169.fc17
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2013-05-04 00:03:40 UTC
selinux-policy-3.10.0-169.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.


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