mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
security: Re-apply commit ce53382ba2
Recent changes in the security driver discarded changes that fixed labeling un-confined guests.
This commit is contained in:
@@ -340,10 +340,12 @@ int virSecurityManagerGenLabel(virSecurityManagerPtr mgr,
|
||||
}
|
||||
|
||||
if (seclabel->type == VIR_DOMAIN_SECLABEL_DEFAULT) {
|
||||
if (sec_managers[i]->defaultConfined)
|
||||
if (sec_managers[i]->defaultConfined) {
|
||||
seclabel->type = VIR_DOMAIN_SECLABEL_DYNAMIC;
|
||||
else
|
||||
} else {
|
||||
seclabel->type = VIR_DOMAIN_SECLABEL_NONE;
|
||||
seclabel->norelabel = true;
|
||||
}
|
||||
}
|
||||
|
||||
if ((seclabel->type == VIR_DOMAIN_SECLABEL_NONE) &&
|
||||
|
||||
Reference in New Issue
Block a user