mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Shouldn't the ioctl KDSKBMODE only be usable by root?
@ 2006-04-28 11:41 Stefan Gast
  0 siblings, 0 replies; only message in thread
From: Stefan Gast @ 2006-04-28 11:41 UTC (permalink / raw)
  To: linux-kernel

Hi,

I'm a bit confused about the fact that everyone who has access to a virtual
console can stop the keyboard from working by using the KDSKBMODE ioctl:

ioctl(fd_to_console_or_tty, KDSKBMODE, K_RAW);

This is a problem because console switching via alt+fx is no longer possible
when the keyboard is in raw mode.

Why is everyone permitted to change the keyboard mode? I guess it is because
of the unicode support, but couldn't a modified unicode_start script be
called by root while running some init script?

The loadkeys (KDSKBENT) and setkeycodes (KDSETKEYCODE) programs fail because
of permisson problems when they are called by a non-privileged user. I
think that's correct, but an unprivileged user should not be able to make
the system unusable by using KDSKBMODE.

Stefan

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-04-28 11:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-04-28 11:41 Shouldn't the ioctl KDSKBMODE only be usable by root? Stefan Gast

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®