sanpcraft wsl2 vs native ubuntu permission denied

I would like to understand the differences in permissions between Ubuntu on WSL and Ubuntu on native Linux. While using a Snap application, I had no issues with the find command in the WSL environment. However, in a native Linux environment, I encounter a “permission denied” problem when using the find command. I am looking for the differences that might be causing this issue.

Not a WSL user here, but I would suspect that under WSL not all kernel security features are available, so the snap runs with degraded confinement there…

Try running snappy-debug from the snappy-debug snap alongside your app in both environments, I guess under WSL you will see apparmor reporting “ALLOWED”, while in a native Ubuntu system it will print “DENIED”…