Cannot flash CC2531 device: libusb_open failed, Access denied (insufficient permissions)

I need to flash a USB device I have (CC2531, used as a DIY Zigbee controller for home automation).

The tool I’m using is cc-tool: https://github.com/dashesy/cc-tool

The fedora package deps I installed in my toolbox container are: dh-autoreconf, boost-devel, libusb1-devel, gcc-c++

When I attempt to flash the device, the tool errors out with:

libusb_open failed, Access denied (insufficient permissions)

All this is running in a toolbox container. I would rather not install the build deps on my SB host. Obviously I don’t expect this forum to help me debug some third-party piece of software, but it does work fine on vanilla Fedora.

So the issue is one of linux device permissions. Using sudo in the toolbox container obviously doesn’t work.

I have installed the following udev rules, with no luck:

# CC Debugger
ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="0451", ATTRS{idProduct}=="16a2", MODE="0666"
# CC2531
SUBSYSTEM=="tty", ATTRS{idVendor}=="0451", ATTRS{idProduct}=="16a8", SYMLINK="ttyUSB.CC2531", OWNER="myusername"

I’ve verified that the idVendor and idProduct lines match the device as reported by lsusb on the host

I am talking off the top of my head here, but it seems to me that toolbox doesn’t give direct access to the host devices, which may be needed for such an interface. Podman container inspect can help look at the container details, and maybe point you to the issue. Podman ps to get ID then podman container inspect ID to see the containers details while running. Possible this is actually selinux policy interfering with device access too. So two areas to look, device access from host to toolbox container, and selinux policy around host device access from within a toolbox container.