In a normal linux distro, I would use /sys/bus/usb/devices/usb3/authorized to re-init a usb hub, thereby re-enumerating all the devices. Is there a way that I could do that from a snap?
The reason behind the question is a modem that is behaving badly at startup. Not properly enumerating perhaps due to power-on sequencing. It is a pcie modem that uses the usb bus. From the command line two options are available for re-enumerating. Using the authorized trick, or simply reading the contents of /dev/bus/usb/003/001. Unfortunately that is also not available from inside a snap. “Permission denied” etc.
I have tried solutions like usb-reset, but that caters more for devices than usb hubs. Concerning /dev/bus/usb, even usbutils-lool.usbhid-dump gives the “Permission denied” message for accessing it.