Bug 1177067 - SELinux is preventing /usr/sbin/ovs-vswitchd from 'search' accesses on the directory /proc/sys/net.
Summary: SELinux is preventing /usr/sbin/ovs-vswitchd from 'search' accesses on the di...
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: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:52b849cfe032f88bae80fdbd609...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-12-24 03:02 UTC by Ian Pilcher
Modified: 2015-03-10 00:56 UTC (History)
5 users (show)

Fixed In Version: selinux-policy-3.12.1-197.fc20
Clone Of:
Environment:
Last Closed: 2015-03-10 00:56:04 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Ian Pilcher 2014-12-24 03:02:38 UTC
Description of problem:
SELinux is preventing /usr/sbin/ovs-vswitchd from 'search' accesses on the directory .

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

If you believe that ovs-vswitchd should be allowed search access on the  directory 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 handler10 /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:object_r:sysctl_net_t:s0
Target Objects                 [ dir ]
Source                        handler10
Source Path                   /usr/sbin/ovs-vswitchd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           openvswitch-2.3.1-1.fc20.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.12.1-196.fc20.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.17.7-200.ip.fc20.x86_64 #1 SMP
                              Mon Dec 22 10:17:37 CST 2014 x86_64 x86_64
Alert Count                   8
First Seen                    2014-12-02 14:00:38 CST
Last Seen                     2014-12-23 17:59:59 CST
Local ID                      06e22f9f-3bdc-4d81-9993-6d0c56f65c2c

Raw Audit Messages
type=AVC msg=audit(1419379199.959:375): avc:  denied  { search } for  pid=32116 comm="handler10" name="net" dev="proc" ino=9152 scontext=system_u:system_r:openvswitch_t:s0 tcontext=system_u:object_r:sysctl_net_t:s0 tclass=dir permissive=0


type=SYSCALL msg=audit(1419379199.959:375): arch=x86_64 syscall=open success=no exit=EACCES a0=7f39d1d369c0 a1=0 a2=1b6 a3=1 items=0 ppid=32105 pid=32116 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=handler10 exe=/usr/sbin/ovs-vswitchd subj=system_u:system_r:openvswitch_t:s0 key=(null)

Hash: handler10,openvswitch_t,sysctl_net_t,dir,search

Additional info:
reporter:       libreport-2.2.3
hashmarkername: setroubleshoot
kernel:         3.17.7-200.ip.fc20.x86_64
type:           libreport

Comment 1 Ian Pilcher 2014-12-24 03:04:04 UTC
I'm pretty sure that it's trying to access /proc/sys/net.  Changing summary accordingly.

Comment 2 Daniel Walsh 2015-01-02 12:41:14 UTC
23a36fc2ba1b716bcf0cb0b752b3c206ed2715d9 fixes this in git.

Comment 3 Fedora Update System 2015-01-27 16:56:57 UTC
selinux-policy-3.12.1-197.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/selinux-policy-3.12.1-197.fc20

Comment 4 Fedora Update System 2015-01-30 04:41:51 UTC
Package selinux-policy-3.12.1-197.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-197.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-1398/selinux-policy-3.12.1-197.fc20
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2015-03-10 00:56:04 UTC
selinux-policy-3.12.1-197.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.