<div dir="ltr"><div dir="ltr">Hi All,<div>I have a usb attached to my ubuntu machine (16.04) and trying to access that device from unprivileged lxc container.</div><div>By access I mean, enumerate and do I/O on that device.</div><div>I have written a small program using libusb library and using that libusb executable to enumerate,read/write usb device from container</div><div>Please find attached  lxc config file and libusb executable.</div><div>I have found plenty of examples in various forums but nothing worked for me.</div><div><br></div><div>Tried the following:</div><div>1. Added below entries in lxc config file</div><div><div>lxc.cgroup.devices.allow = b 8:* rwm</div><div>lxc.mount.entry = /dev/bus/usb/001/ dev/bus/usb/001/ none bind,create=dir 0 0</div><div>lxc.mount.entry = /dev/sdc /home/oxpd/.local/share/lxc/Test/rootfs/dev/sdc none bind,create=file 0 0</div><div>lxc.mount.entry = /dev/sdc1 /home/oxpd/.local/share/lxc/Test/rootfs/dev/sdc1 none bind,create=file 0 0</div></div><div><br></div><div>2. Changed device owner to 100000 </div><div>3. changed device permission to 777.on the host</div><div><br></div><div>when I run the libusb executable on host, all the attached device are listed, but the same when I run inside the container it says 0 devices are attached.</div><div>Is there any other configuration I am missing. Please help.</div><div><br></div><div>Thanks & Regards,</div><div>Yasoda</div><div><br></div></div></div>