Bug 211246 - [syscons] console and ttyv0 competing for keystrokes
Summary: [syscons] console and ttyv0 competing for keystrokes
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 10.3-RELEASE
Hardware: i386 Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-20 14:32 UTC by Alexander Klein
Modified: 2016-10-25 08:49 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Klein 2016-07-20 14:32:47 UTC
On my system, ttyv0 and console are competing for keystrokes on the ttyv0-screen. This can be seen when logging in under X, immediately issuing

% xconsole -file /dev/console

in an xterm, switching to ttyv0 by pressing Ctrl+Alt+F1, and then typing some text.

In most cases, the typed text will appear in the Xconsole-window, and even if this doesn't happen immediately, hammering the keys fast enough with a few <Ret>s interspersed will usually make at least some characters appear in the Xconsole-window.

This might have security implications when parts of login credentials are redirected.

As an aside, things written to /dev/console invariably appear on the ttyv0-screen on my system, but are never passed on to xconsole.