Openat returning EPERM for /dev/sg0

Actually, just to see if it fixes your problem, go to /etc/udev/rules.d/snap.<your snap>.rules then add KERNEL=="sg[0-9]*", TAG+="snap_<snap>_<command>" then run sudo udevadm trigger. When you next start your application, you should have /dev/sg0 added to /sys/fs/cgroup/devices/snap.<snap>.<command>/devices.list

3 Likes