Subject: Re: Newer multimedia keyboards and NetBSD
To: Martijn van Buul <pino+gmane_os_netbsd_current@dohd.org>
From: Nathan J. Williams <nathanw@wasabisystems.com>
List: current-users
Date: 02/04/2007 14:24:02
Martijn van Buul <pino@dohd.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.
- Nathan