If I create a mount namespace with
unshare
or a more sophisticated tool like Docker, can I emulate an input device using a userspace process on the host?
I'm aware of /dev/uinput as a mechanism for emulating input devices, but it doesn't hew to any sort of namespacing (to my knowledge).
Instead, I would like to mount a normal file inside the container, but somehow handle ioctls done on it, and in doing so act like evdev to simulate an input device.
Is such a thing possible on Linux? Am I missing something in my understanding (ioctls are pretty mysterious to me)?
Asked by colinmarc
(11 rep)
Aug 19, 2024, 11:06 AM
Last activity: Aug 29, 2024, 07:20 AM
Last activity: Aug 29, 2024, 07:20 AM