Bug 1378235

Summary: SELinux denies the start of a virtual machine called "power"
Product: Red Hat Enterprise Linux 7 Reporter: Robert Locke <rlocke>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED DUPLICATE QA Contact: Milos Malik <mmalik>
Severity: high Docs Contact:
Priority: unspecified    
Version: 7.3CC: lvrabec, mgrepl, mmalik, msekleta, plautrba, pvrabec, ssekidde, systemd-maint-list
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-09-22 11:21:18 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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 ***