qemu: domain: egl-headless: Add the DRI device into the namespace

Just like for SPICE, we need to put the DRI device into the namespace,
otherwise it will be left out from the DAC relabeling process.

Signed-off-by: Erik Skultety <eskultet@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
Erik Skultety 2018-11-22 12:05:06 +01:00
parent 5f931fe391
commit 53ca6fa4ea

View File

@ -11875,11 +11875,9 @@ qemuDomainSetupGraphics(virQEMUDriverConfigPtr cfg ATTRIBUTE_UNUSED,
virDomainGraphicsDefPtr gfx,
const struct qemuDomainCreateDeviceData *data)
{
const char *rendernode = gfx->data.spice.rendernode;
const char *rendernode = virDomainGraphicsGetRenderNode(gfx);
if (gfx->type != VIR_DOMAIN_GRAPHICS_TYPE_SPICE ||
gfx->data.spice.gl != VIR_TRISTATE_BOOL_YES ||
!rendernode)
if (!rendernode)
return 0;
return qemuDomainCreateDevice(rendernode, data, false);