I forgot to mention you'll need to reload the policy after doing this. So after adjust the HOMEDIRS apparmor variable as stated in comment #6, I suggest:
$ sudo rm -f /etc/apparmor.d/cache/* /var/cache/apparmor/snap.* $ sudo reboot
(there are other ways to do this without a reboot, but this should work regardless of what apparmor policy you have already generated).
I forgot to mention you'll need to reload the policy after doing this. So after adjust the HOMEDIRS apparmor variable as stated in comment #6, I suggest:
$ sudo rm -f /etc/apparmor. d/cache/ * /var/cache/ apparmor/ snap.*
$ sudo reboot
(there are other ways to do this without a reboot, but this should work regardless of what apparmor policy you have already generated).