]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virt-aa-helper: Check retval of vah_add_file()
authorMichal Privoznik <mprivozn@redhat.com>
Wed, 11 Jun 2025 11:59:49 +0000 (13:59 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 2 Jul 2025 11:54:30 +0000 (13:54 +0200)
commitecca0dded412c84c3c89f9e4f1d6f2c5c57b4174
tree72323260006102769f2cbc309391086f11ca9f24
parent05e06927b61dd739b133ca6e6b190b64c2a41f58
virt-aa-helper: Check retval of vah_add_file()

Inside of get_files() there are two cases where vah_add_file() is
not checked for its retval. This is possibly dangerous, because
vah_add_file() might fail. Fix those places by introducing checks
for the retval.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/security/virt-aa-helper.c