Bug 1075606 - SELinux is preventing /usr/sbin/fence_virtd from using the 'net_admin' capabilities.
Summary: SELinux is preventing /usr/sbin/fence_virtd from using the 'net_admin' capabi...
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:2aa258228f6a3365ec575b3827d...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-03-12 13:07 UTC by Peter Larsen
Modified: 2014-04-09 13:21 UTC (History)
4 users (show)

Fixed In Version: selinux-policy-3.12.1-149.fc20
Clone Of:
Environment:
Last Closed: 2014-04-09 13:21:38 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Peter Larsen 2014-03-12 13:07:30 UTC
Description of problem:
Logging in. After last weeks update, when logging in there seems to be issues with the selinux policies for fence_virtd. 
SELinux is preventing /usr/sbin/fence_virtd from using the 'net_admin' capabilities.

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

If you believe that fence_virtd should have the net_admin capability 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 fence_virtd /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:fenced_t:s0
Target Context                system_u:system_r:fenced_t:s0
Target Objects                 [ capability ]
Source                        fence_virtd
Source Path                   /usr/sbin/fence_virtd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           fence-virtd-0.3.0-15.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.6-200.fc20.x86_64 #1 SMP Fri
                              Mar 7 17:02:28 UTC 2014 x86_64 x86_64
Alert Count                   1
First Seen                    2014-03-12 09:05:13 EDT
Last Seen                     2014-03-12 09:05:13 EDT
Local ID                      5ae6c1d9-41e5-4403-8e58-6a4ef0601c03

Raw Audit Messages
type=AVC msg=audit(1394629513.977:452): avc:  denied  { net_admin } for  pid=1873 comm="fence_virtd" capability=12  scontext=system_u:system_r:fenced_t:s0 tcontext=system_u:system_r:fenced_t:s0 tclass=capability


type=SYSCALL msg=audit(1394629513.977:452): arch=x86_64 syscall=ioctl success=no exit=ENODEV a0=8 a1=8933 a2=7fff367de880 a3=6 items=0 ppid=1 pid=1873 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 ses=4294967295 tty=(none) comm=fence_virtd exe=/usr/sbin/fence_virtd subj=system_u:system_r:fenced_t:s0 key=(null)

Hash: fence_virtd,fenced_t,fenced_t,capability,net_admin

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

Comment 1 Lukas Vrabec 2014-03-13 16:14:55 UTC
It is working and you just see this alert or it's broken?

Comment 2 Peter Larsen 2014-03-13 16:31:13 UTC
(In reply to Lukas Vrabec from comment #1)
> It is working and you just see this alert or it's broken?

Not sure what's supposed to be broken. I can run KVM/libvirt but it's unstable. Provisioning a new VM got libvirt to an inconsistent state where it thought the domain was running, but it wasn't, trying to use a non-default network.

Comment 3 Miroslav Grepl 2014-03-14 06:27:01 UTC
commit 6b4eca2effb2105d78a604394b2f3d01c0fc7d8c
Author: Miroslav Grepl <mgrepl>
Date:   Fri Mar 14 07:26:49 2014 +0100

    Allow net_admin cap for fence_virtd running as fenced_t

Comment 4 Fedora Update System 2014-03-31 14:05:15 UTC
selinux-policy-3.12.1-149.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/selinux-policy-3.12.1-149.fc20

Comment 5 Fedora Update System 2014-04-02 09:03:23 UTC
Package selinux-policy-3.12.1-149.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-149.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-4604/selinux-policy-3.12.1-149.fc20
then log in and leave karma (feedback).

Comment 6 Fedora Update System 2014-04-09 13:21:38 UTC
selinux-policy-3.12.1-149.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.