Closed simondeziel closed 4 years ago
LXD has built-in logic to generate and load apparmor profiles so no need for a helper tool.
Though the paths will be tricky as we can't hardcode snap paths or assumptions about symlink targets in there.
Dropping this one in favor of #7181
Required information
Issue description
It would be nice to have the QEMU process confined by Apparmor, like libvirt does.
I did a trivial experiment using lxd's latest snap and got this (toy) Apparmor profile permitting to
lxc start/stop/console/shell
into the VM:I believe that, as with libvirt, a helper tool will be needed to adapt the per-VM generated profile in order to provide better containment.