]> xenbits.xensource.com Git - libvirt.git/commit
virt-aa-helper: add rules for shmem devices
authorChristian Ehrhardt <christian.ehrhardt@canonical.com>
Thu, 17 Oct 2019 10:48:10 +0000 (12:48 +0200)
committerChristian Ehrhardt <christian.ehrhardt@canonical.com>
Thu, 21 Nov 2019 07:26:56 +0000 (08:26 +0100)
commit36afd1a78ed8e13e33cdf954c6618c178ef777a1
tree61c86bbdedecbd61446c68e71a13ced63f2659fa
parentd53f4d02d032ec14391b5052ec165105dfc338b5
virt-aa-helper: add rules for shmem devices

Shared memory devices need qemu to be able to access certain paths
either for the shared memory directly (mostly ivshmem-plain) or for a
socket (mostly ivshmem-doorbell).

Add logic to virt-aa-helper to render those apparmor rules based
on the domain configuration.

https://bugzilla.redhat.com/show_bug.cgi?id=1761645

Reviewed-by: Cole Robinson <crobinso@redhat.com>
Acked-by: Jamie Strandboge <jamie@canonical.com>
Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
src/security/virt-aa-helper.c