Subject: Re: Newer multimedia keyboards and NetBSD
To: Martijn van Buul <firstname.lastname@example.org>
From: Nathan J. Williams <email@example.com>
Date: 02/04/2007 14:24:02
Martijn van Buul <firstname.lastname@example.org> writes:
> 3. Have usbhidaction deal with it by allowing it to generate wskbd events
> Con: - AFAIK, there is currently no way to introduce wskbd events
> from userland at all, and such an interface would probably have
> a very negative impact on security. It is opening the door to
> dozens of new angles of attack.
See the WSCONSIO_INJECTEVENT and WSMUX_INJECTEVENT ioctls in
wsconsio.h, and their use in usr.sbin/moused/moused.c to generate
mouse events based on a serial data stream.