mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 09:17:52 +03:00
Set security label on FD for virDomainOpenGraphics
The virDomainOpenGraphics method accepts a UNIX socket FD from the client app. It must set the label on this FD otherwise QEMU will be prevented from receiving it with recvmsg. Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
This commit is contained in:
parent
4c2d0b29d7
commit
b6b94374b3
@ -14777,6 +14777,10 @@ qemuDomainOpenGraphics(virDomainPtr dom,
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
if (virSecurityManagerSetImageFDLabel(driver->securityManager, vm->def,
|
||||
fd) < 0)
|
||||
goto cleanup;
|
||||
|
||||
if (qemuDomainObjBeginJob(driver, vm, QEMU_JOB_MODIFY) < 0)
|
||||
goto cleanup;
|
||||
qemuDomainObjEnterMonitor(driver, vm);
|
||||
|
Loading…
Reference in New Issue
Block a user