I came up with this patch:
--- /etc/apparmor.d/abstractions/libvirt-qemu.orig 2022-01-22 18:22:57.000000000 +0000 +++ /etc/apparmor.d/abstractions/libvirt-qemu 2022-02-25 13:54:22.075405809 +0000 @@ -85,7 +85,7 @@ /usr/share/misc/sgabios.bin r, /usr/share/openbios/** r, /usr/share/openhackware/** r, - /usr/share/OVMF/** r, + /usr/share/OVMF/** rk, /usr/share/ovmf/** r, /usr/share/proll/** r, /usr/share/qemu-efi/** r, @@ -249,5 +249,8 @@ / r, # harmless on any lsb compliant system /sys/bus/nd/devices/{,**/} r,
+ # required for QEMU accessing UEFI nvram variables + /**/nvram/*_VARS.fd rwk, + # Site-specific additions and overrides. See local/README for details. #include <local/abstractions/libvirt-qemu>
After
systemctl reload apparmor.service; systemctl restart libvirtd
the reproducer works fine.
I'll send it to libvirt upstream now.
I came up with this patch:
--- /etc/apparmor. d/abstractions/ libvirt- qemu.orig 2022-01-22 18:22:57.000000000 +0000 d/abstractions/ libvirt- qemu 2022-02-25 13:54:22.075405809 +0000 share/misc/ sgabios. bin r, share/openbios/ ** r, share/openhackw are/** r, share/ovmf/ ** r, share/proll/ ** r, share/qemu- efi/** r, bus/nd/ devices/ {,**/} r,
+++ /etc/apparmor.
@@ -85,7 +85,7 @@
/usr/
/usr/
/usr/
- /usr/share/OVMF/** r,
+ /usr/share/OVMF/** rk,
/usr/
/usr/
/usr/
@@ -249,5 +249,8 @@
/ r, # harmless on any lsb compliant system
/sys/
+ # required for QEMU accessing UEFI nvram variables abstractions/ libvirt- qemu>
+ /**/nvram/*_VARS.fd rwk,
+
# Site-specific additions and overrides. See local/README for details.
#include <local/
After
systemctl reload apparmor.service; systemctl restart libvirtd
the reproducer works fine.
I'll send it to libvirt upstream now.