Bug 951079 - SELinux is preventing /usr/bin/ovs-ofctl from 'getattr' accesses on the sock_file /run/openvswitch/br-int.mgmt.
Summary: SELinux is preventing /usr/bin/ovs-ofctl from 'getattr' accesses on the sock_...
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 18
Hardware: x86_64
OS: Unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
Whiteboard: abrt_hash:4bf852095f96ea305631768ad86...
Depends On:
TreeView+ depends on / blocked
Reported: 2013-04-11 12:35 UTC by Arindam Choudhury
Modified: 2013-04-18 02:52 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2013-04-18 02:52:01 UTC

Attachments (Terms of Use)

Description Arindam Choudhury 2013-04-11 12:35:04 UTC
Description of problem:
service quantum-openvswitch-agent start
SELinux is preventing /usr/bin/ovs-ofctl from 'getattr' accesses on the sock_file /run/openvswitch/br-int.mgmt.

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

If you believe that ovs-ofctl should be allowed getattr access on the br-int.mgmt sock_file by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
allow this access for now by executing:
# grep ovs-ofctl /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:quantum_t:s0
Target Context                system_u:object_r:openvswitch_var_run_t:s0
Target Objects                /run/openvswitch/br-int.mgmt [ sock_file ]
Source                        ovs-ofctl
Source Path                   /usr/bin/ovs-ofctl
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           openvswitch-1.9.0-1.fc18.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.11.1-87.fc18.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.8.5-201.fc18.x86_64 #1 SMP Thu
                              Mar 28 21:01:19 UTC 2013 x86_64 x86_64
Alert Count                   4
First Seen                    2013-04-11 14:31:58 CEST
Last Seen                     2013-04-11 14:32:54 CEST
Local ID                      af547aea-6be1-419d-bd1f-d442665517bc

Raw Audit Messages
type=AVC msg=audit(1365683574.176:576): avc:  denied  { getattr } for  pid=11978 comm="ovs-ofctl" path="/run/openvswitch/br-int.mgmt" dev="tmpfs" ino=23850 scontext=system_u:system_r:quantum_t:s0 tcontext=system_u:object_r:openvswitch_var_run_t:s0 tclass=sock_file

type=SYSCALL msg=audit(1365683574.176:576): arch=x86_64 syscall=stat success=no exit=EACCES a0=1013160 a1=7fffdb1daff0 a2=7fffdb1daff0 a3=7fffdb1dad70 items=0 ppid=11975 pid=11978 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 ses=4294967295 tty=(none) comm=ovs-ofctl exe=/usr/bin/ovs-ofctl subj=system_u:system_r:quantum_t:s0 key=(null)

Hash: ovs-ofctl,quantum_t,openvswitch_var_run_t,sock_file,getattr


#============= quantum_t ==============
allow quantum_t openvswitch_var_run_t:sock_file getattr;

audit2allow -R
require {
	type openvswitch_var_run_t;
	type quantum_t;
	class sock_file getattr;

#============= quantum_t ==============
allow quantum_t openvswitch_var_run_t:sock_file getattr;

Additional info:
hashmarkername: setroubleshoot
kernel:         3.8.5-201.fc18.x86_64
type:           libreport

Comment 1 Miroslav Grepl 2013-04-15 05:37:05 UTC
Fixed in selinux-policy-3.11.1-90.fc18

Comment 2 Fedora Update System 2013-04-15 11:12:03 UTC
selinux-policy-3.11.1-90.fc18 has been submitted as an update for Fedora 18.

Comment 3 Fedora Update System 2013-04-16 00:07:30 UTC
Package selinux-policy-3.11.1-90.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-90.fc18'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2013-04-18 02:52:03 UTC
selinux-policy-3.11.1-90.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.