]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: gpu: Get pid without binary validation
authorVasiliy Ulyanov <vulyanov@suse.de>
Wed, 2 Feb 2022 16:28:17 +0000 (17:28 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 4 Feb 2022 09:27:43 +0000 (10:27 +0100)
commite3dfa52d260da8a41a0ec35767d08e37c825824a
tree40f86db6041746349008b47526565da28c33a433
parenta9c500d2b50c5c041a1bb6ae9724402cf1cec8fe
qemu: gpu: Get pid without binary validation

The binary validation in virPidFileReadPathIfAlive may fail with EACCES
if the calling process does not have CAP_SYS_PTRACE capability.
Therefore instead do only the check that the pidfile is locked by the
correct process.

Fixes the same issue as with swtpm.

Signed-off-by: Vasiliy Ulyanov <vulyanov@suse.de>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_vhost_user_gpu.c