Ok, so I did get a snapd update today:
alan@robot:~$ grep snapd /var/log/dpkg.log
2021-02-14 20:50:15 upgrade snapd:amd64 2.48+21.04 2.49+21.04
2021-02-14 20:50:15 status half-configured snapd:amd64 2.48+21.04
2021-02-14 20:50:15 status unpacked snapd:amd64 2.48+21.04
2021-02-14 20:50:15 status half-installed snapd:amd64 2.48+21.04
2021-02-14 20:50:18 status unpacked snapd:amd64 2.49+21.04
2021-02-14 20:52:03 configure snapd:amd64 2.49+21.04 <none>
2021-02-14 20:52:03 status unpacked snapd:amd64 2.49+21.04
2021-02-14 20:52:03 status half-configured snapd:amd64 2.49+21.04
2021-02-14 20:54:53 status installed snapd:amd64 2.49+21.04
Which I am now running:
alan@robot:~$ snap version
snap 2.49+21.04
snapd 2.49+21.04
series 16
ubuntu 21.04
kernel 5.8.0-38-generic
I see there’s a “newer” snapd in edge:-
alan@robot:~$ snap info snapd | tail -n 6
channels:
latest/stable: 2.48.2.1 2021-02-08 (11036) 32MB -
latest/candidate: 2.48.2.1 2021-02-08 (11036) 32MB -
latest/beta: 2.49 2021-02-10 (11107) 33MB -
latest/edge: 2.49+git313.gda8011a 2021-02-13 (11168) 33MB -
installed: 2.48.2.1 (11036) 32MB snapd
The one in edge looks “newer” so let’s get that:
alan@robot:~$ snap refresh snapd --edge
2021-02-14T23:24:37Z INFO Waiting for automatic snapd restart...
Which I am now running:
alan@robot:~$ snap version
snap 2.49+git313.gda8011a
snapd 2.49+git313.gda8011a
series 16
ubuntu 21.04
kernel 5.8.0-38-generic
Which works now.
alan@robot:~$ SNAPD_DEBUG=1 SNAP_DEBUG_CONFINE=1 null
2021/02/14 23:28:49.860905 tool_linux.go:204: DEBUG: restarting into "/snap/snapd/current/usr/bin/snap"
2021/02/14 23:28:49.878138 cmd_run.go:409: DEBUG: SELinux not enabled
2021/02/14 23:28:49.878234 tracking.go:44: DEBUG: creating transient scope snap.null.null
2021/02/14 23:28:49.878841 tracking.go:173: DEBUG: using session bus
2021/02/14 23:28:49.879689 tracking.go:305: DEBUG: created transient scope as object: /org/freedesktop/systemd1/job/2020
2021/02/14 23:28:49.879774 tracking.go:135: DEBUG: systemd could not associate process 14858 with transient scope snap.null.null.c5b4a13e-e119-4d30-86b8-324835f76352.scope
2021/02/14 23:28:49.879782 cmd_run.go:1169: DEBUG: snapd cannot track the started application
2021/02/14 23:28:49.879787 cmd_run.go:1170: DEBUG: snap refreshes will not be postponed by this process
DEBUG: umask reset, old umask was 02
DEBUG: security tag: snap.null.null
DEBUG: executable: /usr/lib/snapd/snap-exec
DEBUG: confinement: non-classic
DEBUG: base snap: core
DEBUG: ruid: 1000, euid: 0, suid: 0
DEBUG: rgid: 1000, egid: 1000, sgid: 1000
DEBUG: apparmor label on snap-confine is: /snap/snapd/11168/usr/lib/snapd/snap-confine
DEBUG: apparmor mode is: enforce
DEBUG: creating lock directory /run/snapd/lock (if missing)
DEBUG: set_effective_identity uid:0 (change: no), gid:0 (change: yes)
DEBUG: opening lock directory /run/snapd/lock
DEBUG: set_effective_identity uid:0 (change: no), gid:1000 (change: yes)
DEBUG: opening lock file: /run/snapd/lock/.lock
DEBUG: set_effective_identity uid:0 (change: no), gid:0 (change: yes)
DEBUG: set_effective_identity uid:0 (change: no), gid:1000 (change: yes)
DEBUG: sanity timeout initialized and set for 30 seconds
DEBUG: acquiring exclusive lock (scope (global), uid 0)
DEBUG: sanity timeout reset and disabled
DEBUG: ensuring that snap mount directory is shared
DEBUG: unsharing snap namespace directory
DEBUG: set_effective_identity uid:0 (change: no), gid:0 (change: yes)
DEBUG: set_effective_identity uid:0 (change: no), gid:1000 (change: yes)
DEBUG: releasing lock 5
DEBUG: opened snap-update-ns executable as file descriptor 5
DEBUG: opened snap-discard-ns executable as file descriptor 6
DEBUG: creating lock directory /run/snapd/lock (if missing)
DEBUG: set_effective_identity uid:0 (change: no), gid:0 (change: yes)
DEBUG: opening lock directory /run/snapd/lock
DEBUG: set_effective_identity uid:0 (change: no), gid:1000 (change: yes)
DEBUG: opening lock file: /run/snapd/lock/null.lock
DEBUG: set_effective_identity uid:0 (change: no), gid:0 (change: yes)
DEBUG: set_effective_identity uid:0 (change: no), gid:1000 (change: yes)
DEBUG: sanity timeout initialized and set for 30 seconds
DEBUG: acquiring exclusive lock (scope null, uid 0)
DEBUG: sanity timeout reset and disabled
DEBUG: initializing mount namespace: null
DEBUG: setting up device cgroup
DEBUG: no devices tagged with snap_null_null, skipping device cgroup setup
DEBUG: forked support process 14881
DEBUG: changing apparmor hat to mount-namespace-capture-helper
DEBUG: helper process waiting for command
DEBUG: sanity timeout initialized and set for 30 seconds
DEBUG: block device of snap core, revision 10823 is 7:95
DEBUG: sanity timeout initialized and set for 30 seconds
DEBUG: joining preserved mount namespace for inspection
DEBUG: block device of the root filesystem is 7:95
DEBUG: sanity timeout reset and disabled
DEBUG: preserved mount is not stale, reusing
DEBUG: joined preserved mount namespace null
DEBUG: joining preserved per-user mount namespace
DEBUG: unsharing the mount namespace (per-user)
DEBUG: sc_setup_user_mounts: null
DEBUG: NOT preserving per-user mount namespace
DEBUG: set_effective_identity uid:0 (change: no), gid:0 (change: yes)
DEBUG: set_effective_identity uid:0 (change: no), gid:1000 (change: yes)
DEBUG: moved process 14858 to cgroup hierarchy /sys/fs/cgroup/freezer/snap.null
DEBUG: releasing lock 7
DEBUG: sending command 0 to helper process (pid: 14881)
DEBUG: waiting for response from helper
DEBUG: sanity timeout reset and disabled
DEBUG: helper process received command 0
DEBUG: DEBUG: helper process exitingwaiting for the helper process to exit
DEBUG: helper process exited normally
DEBUG: resetting PATH to values in sync with core snap
DEBUG: set_effective_identity uid:1000 (change: yes), gid:1000 (change: yes)
DEBUG: creating user data directory: /home/alan/snap/null/3
DEBUG: requesting changing of apparmor profile on next exec to snap.null.null
DEBUG: ruid: 1000, euid: 1000, suid: 0
DEBUG: setting capabilities bounding set
DEBUG: regaining SYS_ADMIN
DEBUG: loading bpf program for security tag snap.null.null
DEBUG: read 6736 bytes from /var/lib/snapd/seccomp/bpf//snap.null.null.bin
DEBUG: read 152 bytes from /var/lib/snapd/seccomp/bpf/global.bin
DEBUG: clearing SYS_ADMIN
DEBUG: execv(/usr/lib/snapd/snap-exec, /usr/lib/snapd/snap-exec...)
DEBUG: argv[1] = null
DEBUG: umask restored to 02
DEBUG: working directory restored to /home/alan
alan@robot:~$ snap run emoj explode
💥 💣 🧨
Looks “good”. @mvo @pedronis - I’m on vacation tomorrow - you may want to look at this in the morning.