Just briefly discussed this with @mvo and @kyrofa who suggested a forum post.
I exported an application out of a 3rd party tool, in order to snap it. The exported directory looks like this:-
drwx------ 4 alan alan 4096 Jun 27 11:08 linux64
I created a simple yaml which ingests this and makes a strict snap, which installs correctly. However I can’t run it:-
internal error, please report: running "c3game" failed: open /snap/c3game/x1/meta/snap.yaml: permission denied
Which looks like it’s due to the root fs being 700 rather than the more usual 755.
alan@gort:~/Development/Snappy/construct3template$ unsquashfs -ll c3game_0.1_amd64.snap
Parallel unsquashfs: Using 4 processors
21792 inodes (25320 blocks) to write
drwx------ root/root 400 2017-06-27 11:22 squashfs-root
Should snapd allow me to install this, knowing it’s un-runnable?
Should snapcraft allow me to make this snap, knowing it’s un-runnable?