myriadrf / snapcraft-sandbox

A sandbox for snaps
8 stars 4 forks source link

USB and udev permissions for LimeSDR #2

Open guruofquality opened 8 years ago

guruofquality commented 8 years ago

LimeSDR needs udev permissions for non-root access, and limesdr-based apps may need certain "plugs" enabled so that usb access is not blocked as part of the security in ubuntu-core-launcher.

1) How do udev permissions work with in a snap? Or do we need a global install of udev files outside of the snap? For reference: udev rules for limesdr

2) Is there a "plug" for usb access, or is usb access even restricted at all? As of writing, I have not yet investigated to see if this is an issue.

guruofquality commented 8 years ago

So access to /sys/bus/usb is currently denied by Apparmor. Found some mention of apparmor profile: https://lists.ubuntu.com/archives/snappy-devel/2015-April/000540.html So there may be a way to create an access profile for usb that can be specified in the yaml

Edit: may be relevant: https://developer.ubuntu.com/en/snappy/guides/appliance-builder-guide-webcam/