Bug 1596065 - SELinux is preventing ping from map access on the file /usr/bin/ping
Summary: SELinux is preventing ping from map access on the file /usr/bin/ping
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: selinux-policy
Version: 7.6
Hardware: All
OS: Linux
Target Milestone: rc
: ---
Assignee: Lukas Vrabec
QA Contact: Milos Malik
Depends On:
TreeView+ depends on / blocked
Reported: 2018-06-28 08:05 UTC by yafu
Modified: 2018-10-30 10:06 UTC (History)
6 users (show)

Fixed In Version: selinux-policy-3.13.1-207.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2018-10-30 10:05:54 UTC
Target Upstream Version:

Attachments (Terms of Use)

System ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2018:3111 None None None 2018-10-30 10:06:24 UTC

Description yafu 2018-06-28 08:05:21 UTC
Description of problem:
SELinux is preventing ping from map access on the file /usr/bin/ping

Additional Information:
Source Context                unconfined_u:system_r:dhcpc_t:s0-s0:c0.c1023 
Target Context                system_u:object_r:ping_exec_t:s0
Target Objects                Please check message
Source                        ping
Source Path                   /usr/bin/ping
Port                          <Unknown>
Host                          host.example.com
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-206.el7.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     host.example.com
Platform                      Linux host.example.com
Alert Count                   1
First Seen                    <Unknown>
Last Seen                     2018-06-28 03:00:00 EDT
Local ID                      <Unknown>

Raw Audit Messages:
type=AVC msg=audit(1530171201.460:295): avc:  denied  { map } for  pid=2738 comm="ping" path="/usr/bin/ping" dev="dm-0" ino=25556461 scontext=unconfined_u:system_r:dhcpc_t:s0-s0:c0.c1023 tcontext=system_u:object_r:ping_exec_t:s0 tclass=file permissive=0

Additional info:
It blocks sriov vf in the guest to get ip address from dns:
# dhclient enp9s0
/usr/sbin/dhclient-script: line 679:  2331 Killed                  ping -q -c 1 -w 10 -I ${interface} ${1}

Comment 5 errata-xmlrpc 2018-10-30 10:05:54 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.


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