Bug 890762 - SELinux is preventing /usr/sbin/ovs-vswitchd from 'nlmsg_write' accesses on the netlink_route_socket .
Summary: SELinux is preventing /usr/sbin/ovs-vswitchd from 'nlmsg_write' accesses on t...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 18
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:bcd63232ed29eaaafb2ec3b68bb...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-12-29 19:10 UTC by Ian Pilcher
Modified: 2013-01-23 01:56 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-01-23 01:56:36 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Ian Pilcher 2012-12-29 19:10:08 UTC
Description of problem:
This seems to happen whenever the openvswitch daemon starts.
SELinux is preventing /usr/sbin/ovs-vswitchd from 'nlmsg_write' accesses on the netlink_route_socket .

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

If you believe that ovs-vswitchd 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 ovs-vswitchd /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:openvswitch_t:s0
Target Context                system_u:system_r:openvswitch_t:s0
Target Objects                 [ netlink_route_socket ]
Source                        ovs-vswitchd
Source Path                   /usr/sbin/ovs-vswitchd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           openvswitch-1.7.1-6.fc18.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.11.1-66.fc18.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.6.10-4.fc18.x86_64 #1 SMP Tue
                              Dec 11 18:01:27 UTC 2012 x86_64 x86_64
Alert Count                   1
First Seen                    2012-12-29 13:09:09 CST
Last Seen                     2012-12-29 13:09:09 CST
Local ID                      b219378d-7795-46a1-8326-2cb3301e7240

Raw Audit Messages
type=AVC msg=audit(1356808149.592:55): avc:  denied  { nlmsg_write } for  pid=2108 comm="ovs-vswitchd" scontext=system_u:system_r:openvswitch_t:s0 tcontext=system_u:system_r:openvswitch_t:s0 tclass=netlink_route_socket


type=SYSCALL msg=audit(1356808149.592:55): arch=x86_64 syscall=sendmsg success=yes exit=EBADE a0=25 a1=7fff39c43760 a2=0 a3=200 items=0 ppid=2107 pid=2108 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=ovs-vswitchd exe=/usr/sbin/ovs-vswitchd subj=system_u:system_r:openvswitch_t:s0 key=(null)

Hash: ovs-vswitchd,openvswitch_t,openvswitch_t,netlink_route_socket,nlmsg_write

audit2allow
audit2allow -R

Additional info:
hashmarkername: setroubleshoot
kernel:         3.6.10-4.fc18.x86_64
type:           libreport

Comment 1 Miroslav Grepl 2013-01-02 11:32:24 UTC
Fixed in selinux-policy-3.11.1-69.fc18

Comment 2 Fedora Update System 2013-01-02 17:38:12 UTC
selinux-policy-3.11.1-69.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/selinux-policy-3.11.1-69.fc18

Comment 3 Fedora Update System 2013-01-03 23:51:17 UTC
Package selinux-policy-3.11.1-69.fc18:
* should fix your issue,
* was pushed to the Fedora 18 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.11.1-69.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-0147/selinux-policy-3.11.1-69.fc18
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2013-01-15 22:21:03 UTC
selinux-policy-3.11.1-71.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/selinux-policy-3.11.1-71.fc18

Comment 5 Fedora Update System 2013-01-23 01:56:38 UTC
selinux-policy-3.11.1-71.fc18 has been pushed to the Fedora 18 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.