I am trying to use libnfc in an lxc container that debian wheezy is running on. After trying a few things and libraries, justifying the lxc method, I finally got to the point where I don't know where to look.
The problem is that the hosts see my USB device, but not the container.
I added the following to the lxc container configuration file:
lxc.cgroup.devices.allow = c 189:* rwm
When I try to use lsusb on the container, I get:
root@nfc:~/libnfc
unable to initialize libusb: -99
While the host gives:
Bus 006 Device 003: ID 072f:2200 Advanced Card Systems, Ltd
What device I'm looking for.
Surprisingly, the container can see the device:
root@nfc:~/libnfc
[...]
T: Bus=06 Lev=01 Prnt=01 Port=01 Cnt=01 Dev
D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8
P: Vendor=072f ProdID=2200 Rev=02.14
S: Manufacturer=ACS
S: Product=ACR122U PICC Interface
C:
I: If
I checked libusb versions, kernel modules, dependencies, but being completely ignorant, I got a little lost.
Any ideas?
source
share