I’m using a VM, so no real mouse. And I install incus in the VM for test.
This is my mouse in /dev/input/:
crw-rw---- 1 root input 13, 32 mouse0
I tried to use raw.idmap to bind my user uid and gid, and apparently failed, mouse0 belong to nobody nogroup in container. And I check webui too, no way to add it to container.
config:
raw.idmap: |-
uid 1000 1000
gid 1000 1000
devices:
mouse0:
path: /dev/input/mouse0
propagation: shared
source: /dev/input/mouse0
type: disk
I want mouse0 either belong to uid 1000 or group input or both in container.
So, should I add input to /etc/subgid, or what?