That will allow virt-aa-helper to track these paths and add rules as needed.
This is working for various common use cases as uvtool or nova already.
Never the less I find it interesting to "see what happens" if calling into virDomainDiskTranslateSourcePool so if you have some time please consider answering my questions above.
FYI - dir based pools already work if they are in a common and expected path like seen in d/usr.lib. libvirt. virt-aa- helper
/etc/apparmor.
@{HOME}/ r, lib/libvirt/ images/ r, lib/libvirt/ images/ ** r, lib/nova/ images/ ** r, lib/nova/ instances/ _base/* * r, lib/nova/ instances/ snapshots/ ** r, snap/nova- hypervisor/ common/ instances/ _base/* * r, snap/nova- hypervisor/ common/ instances/ snapshots/ ** r, lib/eucalyptus/ instances/ **/disk* r, lib/eucalyptus/ instances/ **/loader* r, lib/uvtool/ libvirt/ images/ ** r, snap/multipass/ common/ data/multipassd /vault/ instances/ ** r, mnt,opt, srv}/** r, }run/libvirt/ **/[sv] d[a-z] r,
@{HOME}/** r,
/var/
/var/
# nova base images (LP: #907269)
/var/
/var/
# nova snapshots (LP: #1244694)
/var/
# nova base/snapshot files in snapped nova (LP: #1644507)
/var/
/var/
# eucalyptus (LP: #564914)
/var/
# eucalyptus loader (LP: #637544)
/var/
# for uvtool
/var/
# for multipass
/var/
/{media,
# For virt-sandbox
/{,var/
If you need to run out of a more uncommon path you just need to add yours to apparmor. d/local/ usr.lib. libvirt. virt-aa- helper /ubuntu. com/server/ docs/virtualiza tion-libvirt)
/etc/
(more at https:/
That will allow virt-aa-helper to track these paths and add rules as needed.
This is working for various common use cases as uvtool or nova already.
Never the less I find it interesting to "see what happens" if calling into virDomainDiskTr anslateSourcePo ol so if you have some time please consider answering my questions above.