vt: Add virtual console keyboard mode OFF
authorArthur Taylor <art@ified.ca>
Fri, 4 Feb 2011 21:55:50 +0000 (13:55 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 17 Feb 2011 19:12:40 +0000 (11:12 -0800)
commit9fc3de9c83565fcaa23df74c2fc414bb6e7efb0a
tree8d5fb1f8b90fb9a4f194aee8971859a45283d88c
parent8e6d3fe1af38bea3f6c003f8737d2e3a02d00fa0
vt: Add virtual console keyboard mode OFF

virtual console: add keyboard mode OFF

Add a new mode for the virtual console keyboard OFF in which all input
other than shift keys is ignored. Prevents vt input buffers from
overflowing when a program opens but doesn't read from a tty, like X11
using evdev for input.

Signed-off-by: Arthur Taylor <art@ified.ca>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/tty/vt/keyboard.c
drivers/tty/vt/vt_ioctl.c
include/linux/kbd_kern.h
include/linux/kd.h