diff options
author | Daniel P. Berrange <berrange@redhat.com> | 2012-12-19 10:05:17 +0000 |
---|---|---|
committer | Daniel P. Berrange <berrange@redhat.com> | 2012-12-19 10:05:17 +0000 |
commit | 32df483f1d5916f00e3ab15158f099234909e9c2 (patch) | |
tree | 3b2040addcfd125962a5f41442a6658fdf0a8f85 /tests/securityselinuxtest.c | |
parent | b12a9cdedd89b5eea1687765efe10f1512d36db6 (diff) | |
download | libvirt-32df483f1d5916f00e3ab15158f099234909e9c2.tar.gz |
Fix SELinux security label test
If securityselinuxtest was run on a system with newer SELinux
policy it would fail, due to using svirt_tcg_t instead of
svirt_t. Fixing the domain type to be KVM avoids this issue.
Diffstat (limited to 'tests/securityselinuxtest.c')
-rw-r--r-- | tests/securityselinuxtest.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/securityselinuxtest.c b/tests/securityselinuxtest.c index 8bcf3a1ce8..0fa70ba9a9 100644 --- a/tests/securityselinuxtest.c +++ b/tests/securityselinuxtest.c @@ -77,6 +77,7 @@ testBuildDomainDef(bool dynamic, if (VIR_ALLOC(secdef) < 0) goto no_memory; + def->virtType = VIR_DOMAIN_VIRT_KVM; def->seclabels[0] = secdef; def->seclabels[0]->type = dynamic ? VIR_DOMAIN_SECLABEL_DYNAMIC : VIR_DOMAIN_SECLABEL_STATIC; |