Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 907399 - Error occurs after change selinux from static to dynamic on virt-manager
Error occurs after change selinux from static to dynamic on virt-manager
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: virt-manager (Show other bugs)
6.4
Unspecified Unspecified
medium Severity medium
: rc
: ---
Assigned To: Martin Kletzander
Virtualization Bugs
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2013-02-04 04:48 EST by tingting zheng
Modified: 2013-11-21 15:38 EST (History)
7 users (show)

See Also:
Fixed In Version: virt-manager-0.9.0-19.el6
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 907390
Environment:
Last Closed: 2013-11-21 15:38:47 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2013:1646 normal SHIPPED_LIVE virt-manager bug fix update 2013-11-20 16:53:27 EST

  None (edit)
Comment 1 Martin Kletzander 2013-02-05 08:11:22 EST
Patch proposed upstream:

https://www.redhat.com/archives/virt-tools-list/2013-February/msg00028.html
Comment 2 Martin Kletzander 2013-07-16 04:38:14 EDT
Fixed upstream with:

commit b6f0ba364f6376793989450869db83e117586cec
Author: Martin Kletzander <mkletzan@redhat.com>
Date:   Tue Feb 5 12:28:06 2013 +0100

    Add support for security relabeling
Comment 5 luxin 2013-08-02 05:56:40 EDT
I can reproduce this bug:

Version:
virt-manager-0.9.0-18.el6.x86_64
libvirt-0.10.2-18.el6_4.9.x86_64

Steps for Reproduce:
1. Prepare an VM which is not running.
2. Issue "virt-manager" to open virt-manager.
3. Select the existing VM, then "open" -> "details" -> "Overview" -> "Security"
4. Select "static" option, then specify a label,and apply it.
such as: "system_u:system_r:svirt_t:s0:c100,c200"
5. Change selinux to dynamic,then apply

Result:
Error occurs after change selinux from static to dynamic from virt-manager: Error changing VM configuration: unsupported configuration: dynamic label type must use resource relabeling

Verify:
libvirt-0.10.2-21.el6.x86_64
virt-manager-0.9.0-19.el6.x86_64

Steps for Verify:
1. Prepare an VM which is not running.
2. Issue "virt-manager" to open virt-manager.
3. Select the existing VM, then "open" -> "details" -> "Overview" -> "Security"
4. Select "static" option, then specify a label,and apply it.
such as: "system_u:system_r:svirt_t:s0:c100,c200"
5. Change selinux to dynamic,then apply

Result:
No error shows and change selinux from static to dynamic successfully.
Comment 6 errata-xmlrpc 2013-11-21 15:38:47 EST
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2013-1646.html

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