提交 1497e36d 编写于 作者: P Peter Krempa

security: Re-apply commit ce53382b

Recent changes in the security driver discarded changes that fixed
labeling un-confined guests.
上级 077e7bf5
...@@ -340,10 +340,12 @@ int virSecurityManagerGenLabel(virSecurityManagerPtr mgr, ...@@ -340,10 +340,12 @@ int virSecurityManagerGenLabel(virSecurityManagerPtr mgr,
} }
if (seclabel->type == VIR_DOMAIN_SECLABEL_DEFAULT) { if (seclabel->type == VIR_DOMAIN_SECLABEL_DEFAULT) {
if (sec_managers[i]->defaultConfined) if (sec_managers[i]->defaultConfined) {
seclabel->type = VIR_DOMAIN_SECLABEL_DYNAMIC; seclabel->type = VIR_DOMAIN_SECLABEL_DYNAMIC;
else } else {
seclabel->type = VIR_DOMAIN_SECLABEL_NONE; seclabel->type = VIR_DOMAIN_SECLABEL_NONE;
seclabel->norelabel = true;
}
} }
if ((seclabel->type == VIR_DOMAIN_SECLABEL_NONE) && if ((seclabel->type == VIR_DOMAIN_SECLABEL_NONE) &&
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册