Bug 1378235 - SELinux denies the start of a virtual machine called "power"
Summary: SELinux denies the start of a virtual machine called "power"
Keywords:
Status: CLOSED DUPLICATE of bug 1375462
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: selinux-policy
Version: 7.3
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: rc
: ---
Assignee: Lukas Vrabec
QA Contact: Milos Malik
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-09-21 21:31 UTC by Robert Locke
Modified: 2016-11-10 10:16 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-09-22 11:21:18 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Robert Locke 2016-09-21 21:31:20 UTC
Description of problem:
Unable to start a virtual machine named "power"

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

How reproducible:
every time

Steps to Reproduce:
1. virsh start power

Actual results:
SELinux denial

Two curiosities:
1) The file /run/systemd/system/machine-qemu...power.scope has a context of power_unit_file_t rather than systemd_unit_file_t - this was also true in 7.2.
2) In 7.2 the virtual machine started just fine.
3) In 7.3 the virtual machine fails to start.

Expected results:
Virtual machine starts

Additional info:
type=USER_AVC msg=audit(1474491931.610:376): 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 path="/run/systemd/system/machine-qemu\x2d3\x2dpower.scope" cmdline="/usr/lib/systemd/systemd-machined" scontext=system_u:system_r:systemd_machined_t:s0 tcontext=system_u:object_r:power_unit_file_t:s0 tclass=service  exe="/usr/lib/systemd/systemd" sauid=0 hostname=? addr=? terminal=?'
type=USER_AVC msg=audit(1474491931.612:377): pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='avc:  denied  { status } for auid=n/a uid=0 gid=0 path="/run/systemd/system/machine-qemu\x2d3\x2dpower.scope" cmdline="/usr/lib/systemd/systemd-machined" scontext=system_u:system_r:systemd_machined_t:s0 tcontext=system_u:object_r:power_unit_file_t:s0 tclass=service  exe="/usr/lib/systemd/systemd" sauid=0 hostname=? addr=? terminal=?'

Comment 2 Michal Sekletar 2016-09-22 07:50:54 UTC
This looks like the selinux-policy problem.

Comment 3 Milos Malik 2016-09-22 08:23:33 UTC
I believe this bug is a duplicate of BZ#1375462.

Comment 4 Lukas Vrabec 2016-09-22 11:21:18 UTC
Agree with Milos. Closing this issue.

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


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