patch-2.2.17 linux/drivers/char/vt.c

Next file: linux/drivers/i2o/i2o_block.c
Previous file: linux/drivers/char/tty_io.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.2.16/drivers/char/vt.c linux/drivers/char/vt.c
@@ -590,6 +590,8 @@
 
 	case KDGETKEYCODE:
 	case KDSETKEYCODE:
+		if(!suser())
+			perm=0;
 		return do_kbkeycode_ioctl(cmd, (struct kbkeycode *)arg, perm);
 
 	case KDGKBENT:

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)