Bug 1215833

Summary: qemu driver should fill in VM runtime seclabel model='dac' values
Product: [Community] Virtualization Tools Reporter: Cole Robinson <crobinso>
Component: libvirtAssignee: Libvirt Maintainers <libvirt-maint>
Status: CLOSED UPSTREAM QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: dyuan, fjin, mzhan, rbalakri, yafu
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-05-02 14:21:51 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 Cole Robinson 2015-04-27 21:13:53 UTC
When a qemu VM is running with svirt, libvirt populates the XML with the runtime process and image label, example:

  <seclabel type='dynamic' model='selinux' relabel='yes'>
    <label>system_u:system_r:svirt_t:s0:c750,c901</label>
    <imagelabel>system_u:object_r:svirt_image_t:s0:c750,c901</imagelabel>
  </seclabel>

However we don't do that for the model='dac' driver. It's not all that interesting, but I figure we should fill it in to be consistent

Comment 1 Cole Robinson 2016-04-21 00:29:27 UTC
I started a discussion upstream about this:

http://www.redhat.com/archives/libvir-list/2016-April/msg01366.html

Comment 2 Cole Robinson 2016-04-23 18:52:11 UTC
Patch sent upstream:

http://www.redhat.com/archives/libvir-list/2016-April/msg01613.html

Comment 3 Cole Robinson 2016-05-02 14:21:51 UTC
Upstream now:

commit 601531d6eadde981abde6b3b976ad91641e32787
Author: Cole Robinson <crobinso>
Date:   Sat Apr 23 13:46:25 2016 -0400

    conf: format runtime DAC seclabel, unless MIGRATABLE