I snapped a simple mono application, which fails to launch seemingly due to an apparmor issue. So this post is likely targeted in @jdstrand direction
The app just launches usr/bin/mono $SNAP/foo.exe
and here’s the snappy-debug output below. Is this something which can be fixed with a simple apparmor rule change?
= AppArmor =
Time: Mar 24 19:30:04
Log: apparmor="ALLOWED" operation="mknod" profile="snap.foo.foo" name="/dev/shm/mono.28218" pid=28218 comm="mono" requested_mask="c" denied_mask="c" fsuid=1000 ouid=1000
File: /dev/shm/mono.28218 (write)
Suggestions:
* adjust program to create files and directories in /dev/shm/snap.$SNAP_NAME.*
* try the snapcraft preload plugin: https://github.com/sergiusens/snapcraft-preload
= AppArmor =
Time: Mar 24 19:30:04
Log: apparmor="ALLOWED" operation="open" profile="snap.foo.foo" name="/dev/shm/mono.28218" pid=28218 comm="mono" requested_mask="wrc" denied_mask="wrc" fsuid=1000 ouid=1000
File: /dev/shm/mono.28218 (write)
Suggestions:
* adjust program to create files and directories in /dev/shm/snap.$SNAP_NAME.*
* try the snapcraft preload plugin: https://github.com/sergiusens/snapcraft-preload
= AppArmor =
Time: Mar 24 19:30:04
Log: apparmor="ALLOWED" operation="truncate" profile="snap.foo.foo" name="/dev/shm/mono.28218" pid=28218 comm="mono" requested_mask="w" denied_mask="w" fsuid=1000 ouid=1000
File: /dev/shm/mono.28218 (write)
Suggestions:
* adjust program to create files and directories in /dev/shm/snap.$SNAP_NAME.*
* try the snapcraft preload plugin: https://github.com/sergiusens/snapcraft-preload