I’m packaging an application that expects access to e.g. /dev/hidraw0
. It works in devmode so now I’m trying to configure it for strict confinement. I think I need to follow these instructions:
- Snaps that want to consume a hidraw device simply
plugs: [ hidraw ]
and the hidraw device to connect is specified during interface connection.- Available hidraw devices for the system can be seen with
snap connections
.- Once connected, the consuming snap can use the device via the path specified by the connected slot.
I’ve done the first step, but the next returns no results:
$ sudo snap connections
$
These instructions look promising but I’m not sure what to enter for the slot:
To make a connection, use the following syntax:
$ snap connect <snap>:<plug interface> <snap>:<slot interface>
Where do I go from here?