diff --git a/src/qemu/qemu_virtiofs.c b/src/qemu/qemu_virtiofs.c index 15dea3bb57..d80cddd3ba 100644 --- a/src/qemu/qemu_virtiofs.c +++ b/src/qemu/qemu_virtiofs.c @@ -102,7 +102,7 @@ qemuVirtioFSOpenChardev(virQEMUDriver *driver, chrdev->data.nix.listen = true; chrdev->data.nix.path = g_strdup(socket_path); - if (qemuSecuritySetDaemonSocketLabel(driver->securityManager, vm->def) < 0) + if (qemuSecuritySetSocketLabel(driver->securityManager, vm->def) < 0) goto cleanup; fd = qemuOpenChrChardevUNIXSocket(chrdev); if (fd < 0) {