]> xenbits.xensource.com Git - 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)
committerDaniel P. Berrange <berrange@redhat.com>
Mon, 17 Dec 2012 11:22:36 +0000 (11:22 +0000)
commit77d3a8097480e388f1ce3129fe530f235b05f93b
tree3bb45ea7a4db2c52f94248e287fb4b782d20d906
parentc17b16d1be84d734df1dc21f9538e6f6098c46bc
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>
src/security/security_selinux.c