]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Support custom 'svirt_tcg_t' context for TCG based guests
authorDaniel P. Berrange <berrange@redhat.com>
Wed, 12 Dec 2012 11:47:19 +0000 (11:47 +0000)
committerCole Robinson <crobinso@redhat.com>
Mon, 28 Jan 2013 19:46:32 +0000 (14:46 -0500)
commit95ea6a38bd9a3ca8393c7d738df8bab0ca554439
tree1b24b4223e922472f57ab5132cdd620666d8ddd1
parent8a57d799ca9261d16ad60daa3b8f785b679b46eb
Support custom 'svirt_tcg_t' context for TCG based guests

The current SELinux policy only works for KVM guests, since
TCG requires the 'execmem' privilege. There is a 'virt_use_execmem'
boolean to turn this on globally, but that is unpleasant for users.
This changes libvirt to automatically use a new 'svirt_tcg_t'
context for TCG based guests. This obsoletes the previous
boolean tunable and makes things 'just work(tm)'

Since we can't assume we run with new enough policy, I also
make us log a warning message (once only) if we find the policy
lacks support. In this case we fallback to the normal label and
expect users to set the boolean tunable

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
(cherry picked from commit 77d3a8097480e388f1ce3129fe530f235b05f93b)
src/security/security_selinux.c