Comment 1 for bug 1662552

Revision history for this message
Jamie Strandboge (jdstrand) wrote : Re: snaps don't work with NFS home /home/u/user.name

Thank you for filing a bug! This is essentially a duplicate of bug #1620771. You have identified the issue precisely and need to update @{HOMEDIRS} for your site. This can be done in a couple of ways such as the ones you described, but you'll need to also reload the policy after making the changes. Ie, modify one of /etc/apparmor.d/tunables/home, /etc/apparmor.d/tunables/home.d/ubuntu or /etc/apparmor.d/tunables/home.d/something, then do:

$ sudo rm -f /var/cache/apparmor/snap.*
$ sudo apparmor_parser -r --write-cache --cache-loc /var/cache/apparmor /var/lib/snapd/apparmor/profiles/snap.*

Then it should work. Hope this helps!