libvirt/src/security
Daniel Henrique Barboza fae5e343fb dac, selinux: skip setting/restoring label for absent PCI devices
If the underlying PCI device of a hostdev does not exist in the
host (e.g. a SR-IOV VF that was removed while the domain was
running), skip security label handling for it.

This will avoid errors that happens during qemuProcessStop() time,
where a VF that was being used by the domain is not present anymore.
The restore label functions of both DAC and SELinux drivers will
trigger errors in virPCIDeviceNew().

Reviewed-by: Laine Stump <laine@redhat.com>
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
2021-03-01 12:25:33 -03:00
..
apparmor apparmor: Allow lxc processes to receive signals from libvirt 2020-12-03 16:38:33 -07:00
meson.build util: extract virStorageFile code into storage_source 2021-01-22 11:10:27 +01:00
security_apparmor.c virpci.c: simplify virPCIDeviceNew() signature 2021-01-29 17:52:10 -03:00
security_apparmor.h
security_dac.c dac, selinux: skip setting/restoring label for absent PCI devices 2021-03-01 12:25:33 -03:00
security_dac.h
security_driver.c
security_driver.h
security_manager.c security: replace VIR_FREE with g_free in all *Dispose() functions 2021-02-05 00:22:09 -05:00
security_manager.h
security_nop.c
security_nop.h
security_selinux.c dac, selinux: skip setting/restoring label for absent PCI devices 2021-03-01 12:25:33 -03:00
security_selinux.h
security_stack.c security: use g_new0 instead of VIR_ALLOC* 2020-10-01 12:34:13 +02:00
security_stack.h
security_util.c qemusecuritytest: Skip on non supported platforms 2020-11-06 09:14:53 +01:00
security_util.h qemusecuritytest: Skip on non supported platforms 2020-11-06 09:14:53 +01:00
virt-aa-helper.c virpci.c: simplify virPCIDeviceNew() signature 2021-01-29 17:52:10 -03:00