Bug 1072001 - SELinux is preventing /usr/sbin/ip from 'nlmsg_write' accesses on the netlink_route_socket .
Summary: SELinux is preventing /usr/sbin/ip from 'nlmsg_write' accesses on the netlink...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 20
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:56575c0508989474026ef3c0a92...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-03-03 16:33 UTC by Chester Knapp
Modified: 2014-07-21 04:26 UTC (History)
5 users (show)

Fixed In Version: selinux-policy-3.12.1-135.fc20
Clone Of:
Environment:
Last Closed: 2014-03-21 09:25:51 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: packstack-answers-20140303-103051.txt (14.51 KB, text/plain)
2014-03-03 16:33 UTC, Chester Knapp
no flags Details

Description Chester Knapp 2014-03-03 16:33:56 UTC
Description of problem:
This happened at some point during an RDO installation. 

packstack --answer-file packstack-answers-20140303-103051.txt
SELinux is preventing /usr/sbin/ip from 'nlmsg_write' accesses on the netlink_route_socket .

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

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

Additional Information:
Source Context                system_u:system_r:neutron_t:s0
Target Context                system_u:system_r:neutron_t:s0
Target Objects                 [ netlink_route_socket ]
Source                        ip
Source Path                   /usr/sbin/ip
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           iproute-3.11.0-1.fc20.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.12.1-122.fc20.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.13.5-200.fc20.x86_64 #1 SMP Mon
                              Feb 24 16:51:35 UTC 2014 x86_64 x86_64
Alert Count                   2
First Seen                    2014-03-03 11:27:35 EST
Last Seen                     2014-03-03 11:29:00 EST
Local ID                      dcf38754-845d-4b17-8ac9-922270c3689e

Raw Audit Messages
type=AVC msg=audit(1393864140.716:10311): avc:  denied  { nlmsg_write } for  pid=21499 comm="ip" scontext=system_u:system_r:neutron_t:s0 tcontext=system_u:system_r:neutron_t:s0 tclass=netlink_route_socket


type=SYSCALL msg=audit(1393864140.716:10311): arch=x86_64 syscall=sendto success=no exit=EACCES a0=3 a1=7fffa0e016c0 a2=20 a3=0 items=0 ppid=16995 pid=21499 auid=4294967295 uid=988 gid=985 euid=988 suid=988 fsuid=988 egid=985 sgid=985 fsgid=985 ses=4294967295 tty=(none) comm=ip exe=/usr/sbin/ip subj=system_u:system_r:neutron_t:s0 key=(null)

Hash: ip,neutron_t,neutron_t,netlink_route_socket,nlmsg_write

Additional info:
reporter:       libreport-2.1.12
hashmarkername: setroubleshoot
kernel:         3.13.5-200.fc20.x86_64
type:           libreport

Comment 1 Chester Knapp 2014-03-03 16:33:59 UTC
Created attachment 870034 [details]
File: packstack-answers-20140303-103051.txt

Comment 2 Miroslav Grepl 2014-03-04 17:00:23 UTC
commit f0ea29cc0b0c5263a675268d32a71b876bdc1ace
Author: Miroslav Grepl <mgrepl>
Date:   Tue Mar 4 17:58:41 2014 +0100

    Allow to run ip cmd in neutron_t domain

Comment 3 Fedora Update System 2014-03-12 07:19:59 UTC
selinux-policy-3.12.1-135.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/selinux-policy-3.12.1-135.fc20

Comment 4 Fedora Update System 2014-03-13 05:11:07 UTC
Package selinux-policy-3.12.1-135.fc20:
* should fix your issue,
* was pushed to the Fedora 20 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.12.1-135.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-3813/selinux-policy-3.12.1-135.fc20
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2014-03-21 09:25:51 UTC
selinux-policy-3.12.1-135.fc20 has been pushed to the Fedora 20 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.