hello,
on two different laptops, connecting a mobile (different mobiles, but both in ADB) and passing it through to an unpriv. LXC give different results.
on laptop A, the device entry created looks like
crw-rw-rw-+ 1 root dialout 189, 138 Sep 24 07:27 /dev/bus/usb/002/011
in the container:
crw-rw-rw-+ 1 nobody nogroup 189, 138 Sep 24 07:27 /dev/bus/usb/002/011
on laptop B, it looks like:
crw-rw----+ 1 root audio 189, 7 Sep 24 07:18 /dev/bus/usb/001/008
in the container
crw-rw----+ 1 nobody nogroup 189, 7 Sep 24 07:18 /dev/bus/usb/001/008
On Laptop A, adb in a container can access the mobile, on B not.
I assume, these are the missing world-rw.
I've tried to setup secial udev-rules, to change the mode & group, and to create symlink. both did not work on Laptop B.
the lxc.mount.entry in the lxc-config also does not change mode & group…
Can please someone can shed some light on this?
TIA
guenter
on two different laptops, connecting a mobile (different mobiles, but both in ADB) and passing it through to an unpriv. LXC give different results.
on laptop A, the device entry created looks like
crw-rw-rw-+ 1 root dialout 189, 138 Sep 24 07:27 /dev/bus/usb/002/011
in the container:
crw-rw-rw-+ 1 nobody nogroup 189, 138 Sep 24 07:27 /dev/bus/usb/002/011
on laptop B, it looks like:
crw-rw----+ 1 root audio 189, 7 Sep 24 07:18 /dev/bus/usb/001/008
in the container
crw-rw----+ 1 nobody nogroup 189, 7 Sep 24 07:18 /dev/bus/usb/001/008
On Laptop A, adb in a container can access the mobile, on B not.
I assume, these are the missing world-rw.
I've tried to setup secial udev-rules, to change the mode & group, and to create symlink. both did not work on Laptop B.
the lxc.mount.entry in the lxc-config also does not change mode & group…
Can please someone can shed some light on this?
Code:
arch: amd64
cores: 2
features: mknod=1,nesting=1,fuse=1,keyctl=1
hostname: usb
memory: 512
net0: name=eth0,bridge=vmbr0,hwaddr=B6:BA:34:66:B4:BA,ip=dhcp,type=veth
ostype: debian
rootfs: data:subvol-102-disk-0,mountoptions=noatime,size=8G
swap: 512
unprivileged: 1
lxc.cgroup.devices.allow: c 189:* rwm
lxc.mount.entry: /dev/bus/usb/001/008 dev/bus/usb/001/008 none bind,optional,create=file,uid=0,gid=20,mode=0666
TIA
guenter