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 src/security: use #pragma once in headers 2019-06-19 17:12:31 +02:00
security_dac.c dac, selinux: skip setting/restoring label for absent PCI devices 2021-03-01 12:25:33 -03:00
security_dac.h src/security: use #pragma once in headers 2019-06-19 17:12:31 +02:00
security_driver.c Use G_N_ELEMENTS instead of ARRAY_CARDINALITY 2019-10-15 16:14:19 +02:00
security_driver.h secdrivers: Rename @stdin_path argument of virSecurityDomainSetAllLabel() 2020-07-10 14:20:07 +02:00
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 secdrivers: Rename @stdin_path argument of virSecurityDomainSetAllLabel() 2020-07-10 14:20:07 +02:00
security_nop.c secdrivers: Rename @stdin_path argument of virSecurityDomainSetAllLabel() 2020-07-10 14:20:07 +02:00
security_nop.h src/security: use #pragma once in headers 2019-06-19 17:12:31 +02:00
security_selinux.c dac, selinux: skip setting/restoring label for absent PCI devices 2021-03-01 12:25:33 -03:00
security_selinux.h src/security: use #pragma once in headers 2019-06-19 17:12:31 +02:00
security_stack.c security: use g_new0 instead of VIR_ALLOC* 2020-10-01 12:34:13 +02:00
security_stack.h src/security: use #pragma once in headers 2019-06-19 17:12:31 +02:00
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