Probably mainline kernel is not yet patched for snapd and for older ubuntu versions so better use current hwe kernel for lts where it is supported & properly patched for debug confinement.
While I agree that on Ubuntu using the Ubuntu hwe kernel is going to give you full snapd support, it would be good to understand the 4.15 behavior since there might be regressions there.
Where did you get the 4.15 kernel? What are the exact steps to reproduce?
Everything worked with no denials. Can you provide additional details to reproduce beyond installing the kernels? Specifically, details on “after that I went on debugging my snaps” would be great.
Sorry I thought that this denial caused the problem on newer kernel but I totally misunderstood that one but real issue here was that I did not get any app-armor log for local snaps like snappy-debug.security usually shows and this could be due to snap debug confinement being partial on newer kernel rather then strict.
You are correct that partial confinement will create policy that does not show denials in the logs for snaps. The initial report wasn’t for snaps, but for snap-confine:
Yeah I could not reproduce it either with kernel 4.15.0 or 4.15.1 on same machine though that denial I posted was copied from gnome log app not from snappy-debug when I was using it for app-armor log.