Bug 1369040 - selinux-policy-targeted-3.13.1-191.12.fc24.noarch denies /usr/lib/systemd/systemd-machined
Summary: selinux-policy-targeted-3.13.1-191.12.fc24.noarch denies /usr/lib/systemd/sys...
Keywords:
Status: CLOSED DUPLICATE of bug 1368923
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy-targeted
Version: 24
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Ben Levenson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-08-22 11:28 UTC by Alexander Dalloz
Modified: 2016-08-22 13:16 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-08-22 13:16:07 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Alexander Dalloz 2016-08-22 11:28:06 UTC
Description of problem:

After updating selinux-policy and selinux-policy-targeted to latest Fedora 24 versions it is no longer possible to start a local KVM VM when SELinux is in enforcing mode.

Version-Release number of selected component (if applicable):

Aug 21 16:19:06 INFO Upgraded: selinux-policy-3.13.1-191.12.fc24.noarch
Aug 21 16:19:28 INFO Upgraded: selinux-policy-targeted-3.13.1-191.12.fc24.noarch

How reproducible:

Update to named selinux-policy and selinux-policy-targeted versions and try to start a KVM VM on your local system while SELinux is enforced.

Steps to Reproduce:
1. Update to named SELinux packages
2. Open virt-manager and connect to local system
3. Try to start an existing VM

Actual results:

Error popup with following details:

Fehler beim Starten der Domain: SELinux policy denies access.

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 88, in cb_wrapper
    callback(asyncjob, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 124, in tmpcb
    callback(*args, **kwargs)
  File "/usr/share/virt-manager/virtManager/libvirtobject.py", line 83, in newfn
    ret = fn(self, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/domain.py", line 1404, in startup
    self._backend.create()
  File "/usr/lib64/python2.7/site-packages/libvirt.py", line 1035, in create
    if ret == -1: raise libvirtError ('virDomainCreate() failed', dom=self)
libvirtError: SELinux policy denies access.

AVC logging of:

type=USER_AVC msg=audit(1471857718.238:319): pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='avc:  denied  { start } for auid=n/a uid=0 gid=0 cmdline="/usr/lib/systemd/systemd-machined" scontext=system_u:system_r:systemd_machined_t:s0 tcontext=system_u:system_r:init_t:s0 tclass=system  exe="/usr/lib/systemd/systemd" sauid=0 hostname=? addr=? terminal=?'

Expected results:

KVM VM gets started.

Additional info:

No such problem prior to updating to latest selinux-policy and selinux-policy-targeted.

Comment 1 Alexander Dalloz 2016-08-22 13:16:07 UTC

*** This bug has been marked as a duplicate of bug 1368923 ***


Note You need to log in before you can comment on or make changes to this bug.