]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu_cgroup: Drop ENOENT special case for RNG devices
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 15 Mar 2022 11:37:44 +0000 (12:37 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 16 Mar 2022 12:22:17 +0000 (13:22 +0100)
commitbc51dac71389c6ba17471a7c5131debd1a3b4d88
tree0e6b9a0a0c49b173cd7cd0c70573318e2fcfaf19
parenta29db4fbed10fe45abe8844b0cffded1fe59cdbc
qemu_cgroup: Drop ENOENT special case for RNG devices

When allowing or denying RNG device in CGroups there's a special
check if the backend device exists (errno == ENOENT) in which
case success is returned to caller. This is in contrast with the
rest of the functions and in fact wrong too - if the backend
device doesn't exist then QEMU will fail opening it. Might as
well signal error here.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
src/qemu/qemu_cgroup.c