It seems that although I add apparmor in the .config
CONFIG_SECURITY_APPARMOR=y CONFIG_SECURITY_APPARMOR_HASH=y CONFIG_SECURITY_APPARMOR_HASH_DEFAULT=y
my device didn’t had it installed at all, adding
CONFIG_SECURITY_APPARMOR_BOOTPARAM_VALUE=1 fixed the that.
I still have the same error.
Found out that when installing snapd I had this error message:
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults diff: /var/lib/apparmor/profiles/.apparmor.md5sums: No such file or directory Setting up squashfs-tools (1:4.3-3ubuntu2.16.04.3) ... Setting up snapd (2.40) ... md5sum: /etc/apparmor.d/usr.lib.snapd.snap-confine: No such file or directory snapd.failure.service is a disabled or a static unit, not starting it. snapd.snap-repair.service is a disabled or a static unit, not starting it.
I don’t have the file
usr.lib.snapd.snap-confine but I do have the file
Will try to learn how to add the apparmor patches when I have time and will post update.