mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-03 07:33:50 +00:00
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. (cherry picked from commit 32df483f1d5916f00e3ab15158f099234909e9c2)
This commit is contained in:
parent
e91f69ed89
commit
119c079c5b
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user