]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu_cgroup: Fix 'rc' argument on virDomainAuditCgroupPath() calls
authorEduardo Habkost <ehabkost@redhat.com>
Thu, 28 Dec 2017 17:41:28 +0000 (15:41 -0200)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 4 Jan 2018 09:50:38 +0000 (10:50 +0100)
commit9a22251bbe6a4ff8dab90da53a1c0df82d8d29fc
tree399a895bef6ef04df23bdfdb78150773bf4c32b6
parent474c7a2ffa74d6acc93d0749a899e851dc2cc94d
qemu_cgroup: Fix 'rc' argument on virDomainAuditCgroupPath() calls

All calls to virDomainAuditCgroupPath() were passing 'rc == 0' as
argument, when it was supposed to pass the 'rc' value directly.

As a consequence, the audit events that were supposed to be
logged (actual cgroup changes) were never being logged, and bogus
audit events were logged when using regular files as disk image.

Fix all calls to use the return value of
virCgroup{Allow,Deny}Device*() directly as the 'rc' argument.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_cgroup.c