Go snap + vscode snap + go extension breaks error checking

Hi @mwhudson

Thanks for snapping up go! I found an issue with the snap. If I use the snap version of go with the snap version of vscode and the “go” extension from Microsoft, then error reporting doesn’t function correctly: errors are not reported anymore.

Every time I save a file, normally all errors are checked. However, with the snap version of go, I get the following warnings in the journal and “unknown error” in the vscode debug window. Removing the snap and installing the apt package fixes the issue.

Sep 20 16:23:03 travers kernel: kauditd_printk_skb: 18 callbacks suppressed
Sep 20 16:23:03 travers kernel: audit: type=1400 audit(1537453383.803:1865): apparmor="DENIED" operation="file_inherit" profile="/snap/core/5328/usr/lib/snapd/snap-confine" pid=26726 comm="snap-confine" family="unix" sock_type="stream" protocol=0 requested_mask="send receive" denied_mask="send receive" addr=none peer_addr=none
Sep 20 16:23:03 travers kernel: audit: type=1400 audit(1537453383.803:1866): apparmor="DENIED" operation="file_inherit" profile="/snap/core/5328/usr/lib/snapd/snap-confine" pid=26726 comm="snap-confine" family="unix" sock_type="stream" protocol=0 requested_mask="send receive" denied_mask="send receive" addr=none peer_addr=none
Sep 20 16:23:03 travers kernel: audit: type=1400 audit(1537453383.803:1867): apparmor="DENIED" operation="file_inherit" profile="/snap/core/5328/usr/lib/snapd/snap-confine" pid=26726 comm="snap-confine" family="unix" sock_type="stream" protocol=0 requested_mask="send receive" denied_mask="send receive" addr=none peer_addr=none
Sep 20 16:23:03 travers kernel: audit: type=1400 audit(1537453383.803:1868): apparmor="DENIED" operation="file_inherit" profile="/snap/core/5328/usr/lib/snapd/snap-confine" name="/dev/shm/.org.chromium.Chromium.r2zF18" pid=26726 comm="snap-confine" requested_mask="ra" denied_mask="ra" fsuid=1000 ouid=1000
Sep 20 16:23:03 travers audit[26737]: AVC apparmor="DENIED" operation="file_inherit" profile="/snap/core/5328/usr/lib/snapd/snap-confine" pid=26737 comm="snap-confine" family="unix" sock_type="stream" protocol=0 requested_mask="send receive" denied_mask="send receive" addr=none peer_addr=none
Sep 20 16:23:03 travers audit[26737]: AVC apparmor="DENIED" operation="file_inherit" profile="/snap/core/5328/usr/lib/snapd/snap-confine" pid=26737 comm="snap-confine" family="unix" sock_type="stream" protocol=0 requested_mask="send receive" denied_mask="send receive" addr=none peer_addr=none
Sep 20 16:23:03 travers audit[26737]: AVC apparmor="DENIED" operation="file_inherit" profile="/snap/core/5328/usr/lib/snapd/snap-confine" pid=26737 comm="snap-confine" family="unix" sock_type="stream" protocol=0 requested_mask="send receive" denied_mask="send receive" addr=none peer_addr=none
Sep 20 16:23:03 travers audit[26737]: AVC apparmor="DENIED" operation="file_inherit" profile="/snap/core/5328/usr/lib/snapd/snap-confine" name="/dev/shm/.org.chromium.Chromium.r2zF18" pid=26737 comm="snap-confine" requested_mask="ra" denied_mask="ra" fsuid=1000 ouid=1000
1 Like

This is the same issue as discussed in Snapd 2.32 breaks live-server installer – there is a plan but I think it’s one that’s going to take a while.

2 Likes