libvirt/src/security
Christian Ehrhardt 0541b65464
virt-aa-helper: allow sysfs path used for vhost-scsi
When a vhost scsi device is hotplugged virt-aa-helper is called to
add the respective path.
For example the config:
  <hostdev mode='subsystem' type='scsi_host' managed='no'>
    <source protocol='vhost' wwpn='naa.50014059de6fba4f'/>
  </hostdev>
Will call it to add:
 /sys/kernel/config/target/vhost//naa.50014059de6fba4f

But in general /sys paths are filtered in virt-aa-helper.c:valid_path
To allow the path used for vhost-scsi we need to add it to the list of
known and accepted overrides.

Fixes: https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1829223

Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
2019-05-16 09:31:58 +02:00
..
apparmor apparmor: support more QEMU architectures 2019-04-01 12:32:55 +02:00
Makefile.inc.am maint: Add filetype annotations to Makefile.inc.am 2019-04-12 16:55:38 +02:00
security_apparmor.c apparmor: Check libvirtd profile status by name 2019-03-13 11:58:11 -06:00
security_apparmor.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
security_dac.c virSecurityDACRestoreChardevLabel: Restore UNIX sockets too 2019-04-16 10:47:51 +02:00
security_dac.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
security_driver.c Remove all Author(s): lines from source file headers 2018-12-13 16:08:38 +00:00
security_driver.h security: Remove security driver internals for disk labeling 2019-01-30 17:20:38 +01:00
security_manager.c Revert "Include unistd.h directly by files using it" 2019-04-10 12:26:32 +02:00
security_manager.h security: Remove disk labeling functions and fix callers 2019-01-30 17:20:38 +01:00
security_nop.c security: Remove security driver internals for disk labeling 2019-01-30 17:20:38 +01:00
security_nop.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
security_selinux.c security: avoid use of dirent d_type field 2019-04-03 11:31:38 +01:00
security_selinux.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
security_stack.c security: Remove security driver internals for disk labeling 2019-01-30 17:20:38 +01:00
security_stack.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
security_util.c security: Include security_util 2018-12-19 15:31:56 +01:00
security_util.h security: Include security_util 2018-12-19 15:31:56 +01:00
virt-aa-helper.c virt-aa-helper: allow sysfs path used for vhost-scsi 2019-05-16 09:31:58 +02:00