On RHEL6, After installing via livecd with selinux in permissive mode, start a Windows 7 KVM guest receive error: internal error cannot parse sensitivity level in s01

Solution Verified - Updated -

Environment

  • Red Hat Enterprise Linux (RHEL) 6.4
  • qemu-kvm-0.12.1.2-2.351.el6.alon.bz876982.v1.x86_64
  • libvirt-0.10.2-15.el6.x86_64
  • kernel-2.6.32-353.el6.x86_64
  • Windows 7

Issue

  • After installing via livecd with selinux in permissive mode, start a Windows 7 KVM guest receive error:
internal error cannot parse sensitivity level in s0

Resolution

Root Cause

This seems to be the commit where the enforcing-test originates:

commit e98a30558acc58275ee2c4469e3c4f8bea9b566f
Author: Warren Togami <wtogami@redhat.com>
Date:   Wed Feb 20 14:39:47 2008 -0500

    selinux --disabled fixes

[...]

 def selinux_enabled(ks):
-    return ks.handler.selinux.selinux
+    return ks.handler.selinux.selinux == ksconstants.SELINUX_ENFORCING

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments