Comment 1 for bug 1773515

Revision history for this message
daniel CURTIS (anoda) wrote : Re: apparmour fails after removal of snapd

Hello Dale.

It seems, that I've had the same/similar problem with AppArmor and 'usr.lib.snapd.snap-confine.real' profile [1]. The strange thing was, that I couldn't change the enforcement mode for any profile! For example Firefox etc.

Please edit this profile and check if this line is commented. If it isn't then You can do this by adding '#' etc.:

- include "/var/lib/snapd/apparmor/snap-confine"
+ #include "/var/lib/snapd/apparmor/snap-confine"

Next, reboot system or reload AppArmor service. In my case, commenting an include '/var/lib/snapd/apparmor/snap-confine.d' line, fixed this issue, which seems to be similar to your problem. However, it should be fixed via 'snapd' package update but I don't remember if there was such an update. Anyway, I hope it will help You.

Thanks, best regards.
_____________________
[1] https://lists.ubuntu.com/archives/apparmor/2017-November/011330.html