提交 07bf96ee 编写于 作者: D Daniel P. Berrange

Add missing defaultConsoleTargetType callback for AppArmour

Every instance of virCapsPtr must have the defaultConsoleTargetType
field set.

* src/security/virt-aa-helper.c: Add defaultConsoleTargetType to
  virCapsPtr
上级 b2c62316
...@@ -685,6 +685,11 @@ caps_mockup(vahControl * ctl, const char *xmlStr) ...@@ -685,6 +685,11 @@ caps_mockup(vahControl * ctl, const char *xmlStr)
return rc; return rc;
} }
static int aaDefaultConsoleType(const char *ostype ATTRIBUTE_UNUSED)
{
return VIR_DOMAIN_CHR_CONSOLE_TARGET_TYPE_SERIAL;
}
static int static int
get_definition(vahControl * ctl, const char *xmlStr) get_definition(vahControl * ctl, const char *xmlStr)
{ {
...@@ -703,6 +708,8 @@ get_definition(vahControl * ctl, const char *xmlStr) ...@@ -703,6 +708,8 @@ get_definition(vahControl * ctl, const char *xmlStr)
goto exit; goto exit;
} }
ctl->caps->defaultConsoleTargetType = aaDefaultConsoleType;
if ((guest = virCapabilitiesAddGuest(ctl->caps, if ((guest = virCapabilitiesAddGuest(ctl->caps,
ctl->hvm, ctl->hvm,
ctl->arch, ctl->arch,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册