Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Mail Systems
Eclipse Documentation

How To Guides
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Problem Solutions
Privacy Policy




Red Hat Enterprise Linux 6 Essentials eBook now available in PDF and ePub formats for only $9.99
RHEL 6 Essentials contains 40 chapters and over 250 pages.

16.3. SELinux

This sections contains topics to consider when using SELinux with your virtualization deployment. When you deploy system changes or add devices, you must update your SELinux policy accordingly. To configure an LVM volume for a guest, you must modify the SELinux context for the respective underlying block device and volume group.
# semanage fcontext -a -t virt_image _t -f -b /dev/sda2
# restorecon /dev/sda2
KVM and SELinux
There are several SELinux Booleans which affect KVM and libvirt. These Booleans are listed below for your convenience.
KVM SELinux Booleans
SELinux Boolean Description
allow_unconfined_qemu_transition Default: off. This Boolean controls whether KVM guests can be transitioned to unconfined users.
qemu_full_network Default: on. This Boolean controls full network access to KVM guests.
qemu_use_cifs Default: on. This Boolean controls KVM's access to CIFS or Samba file systems.
qemu_use_comm Default: off. This Boolean controls whether KVM can access serial or parallel communications ports.
qemu_use_nfs Default: on. This Boolean controls KVM's access to NFS file systems.

  Published under the terms of the Creative Commons License Design by Interspire