]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemuFirmwareFetchConfigs: Fix check for @privileged
authorMichal Privoznik <mprivozn@redhat.com>
Wed, 13 Mar 2019 09:50:54 +0000 (10:50 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 13 Mar 2019 12:11:25 +0000 (13:11 +0100)
commit6d9542e340405ad4fefc06620da88ad2fbfec6bf
treec8c324aa3997fece9bedec2a234a54f26e29e877
parent60943f0eecf91b6dfd4f71854234efe9df0d6a65
qemuFirmwareFetchConfigs: Fix check for @privileged

The qemuFirmwareFetchConfigs() function is supposed to fetch all
firmware descriptions from paths defined by firmware.json
specification. This includes user's $HOME directory. However, it
was agreed that if libvirtd is running as privileged user then
his $HOME is ignored (thus $HOME is included in the search only
for regular users). Well, I got the condition wrong - it should
have been reversed.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Andrea Bolognani <abologna@redhat.com>
src/qemu/qemu_firmware.c