]> git.ipfire.org Git - thirdparty/libvirt.git/commit
security: aa-helper: Fix static defined vfio MDEVs
authorChristian Ehrhardt <christian.ehrhardt@canonical.com>
Thu, 22 Nov 2018 12:55:02 +0000 (13:55 +0100)
committerErik Skultety <eskultet@redhat.com>
Thu, 22 Nov 2018 13:19:54 +0000 (14:19 +0100)
commitef6bbfff786c47457754c9788be6121dded92c4e
treecdc009d8c6751dafef6aea6628ee76e3ec7adae3
parent4e8b37d4975ea6e727cf4ddcbc11f154208d887b
security: aa-helper: Fix static defined vfio MDEVs

virt-aa-helper needs to grant QEMU access to VFIO MDEV devices.

This extends commit 74e86b6b which only covered PCI hostdevs for VFIO-PCI
assignment by now also covering vfio MDEVs.
It has still the same limitations regarding the device lifecycle, IOW we're
unable to predict the actual VFIO device being created, thus we need
wildcards.

Also note that the hotplug case, where apparmor is able to detect the actual
VFIO device during runtime, is already covered by commit 606afafb.

Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
Reviewed-by: Erik Skultety <eskultet@redhat.com>
Reviewed-by: Boris Fiuczynski <fiuczy@linux.ibm.com>
src/security/virt-aa-helper.c