mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 21:55:25 +00: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:
parent
077e7bf51f
commit
1497e36db9
@ -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) &&
|
||||
|
Loading…
Reference in New Issue
Block a user