I read about how it unlinks after creation, so I think in general have just a commented line like this in /etc/apparmor.d/abstractions/libvirt-qemu is ok:
# Uncomment the following line to enable huge pages in your guests.
# owner /dev/hugepages/libvirt/qemu/* rw,
It would be better if libvirt could do this dynamically like it does with disks, etc (the SELinux driver may already do this). This should be investigated.
I read about how it unlinks after creation, so I think in general have just a commented line like this in /etc/apparmor. d/abstractions/ libvirt- qemu is ok: libvirt/ qemu/* rw,
# Uncomment the following line to enable huge pages in your guests.
# owner /dev/hugepages/
It would be better if libvirt could do this dynamically like it does with disks, etc (the SELinux driver may already do this). This should be investigated.