svn commit: r262957 - in head/etc: etc.arm etc.ia64 etc.mips etc.powerpc etc.sparc64
Marcel Moolenaar
marcel at FreeBSD.org
Sun Mar 9 21:06:23 UTC 2014
Author: marcel
Date: Sun Mar 9 21:06:22 2014
New Revision: 262957
URL: http://svnweb.freebsd.org/changeset/base/262957
Log:
Change the terminal type/class for enabled serial lines to 3wire. This
allows us to change the uart(4) driver to not hardcode specific line
settings for the serial console.
A terminal type of 3wire makes sure the console still works when no DCD
signal is present, which preserves behviour. When it is known that the
terminal server (or DCE in general) provides DCD, a terminal type/class
of std can be used. This has the effect of being logged out when one
disconnects from the console -- improving security overall.
Likewise, when uart(4) does not fixate the baudrate, one can change
the terminal type/class to set a specific baudrate. An operator can use
this to change the console speed mid-flight, without needing a reboot.
Of course it helps in this respect if and when the firmware can be
configured from the OS.
The above mentioned capabilities depend on uart(4) being changed, which
is to happen next.
Modified:
head/etc/etc.arm/ttys
head/etc/etc.ia64/ttys
head/etc/etc.mips/ttys
head/etc/etc.powerpc/ttys
head/etc/etc.sparc64/ttys
Modified: head/etc/etc.arm/ttys
==============================================================================
--- head/etc/etc.arm/ttys Sun Mar 9 21:02:23 2014 (r262956)
+++ head/etc/etc.arm/ttys Sun Mar 9 21:06:22 2014 (r262957)
@@ -41,7 +41,7 @@ ttyv7 "/usr/libexec/getty Pc" xterm off
#ttyv8 "/usr/local/bin/xdm -nodaemon" xterm off secure
# Serial terminals
# The 'dialup' keyword identifies dialin lines to login, fingerd etc.
-ttyu0 "/usr/libexec/getty std.9600" vt100 on secure
+ttyu0 "/usr/libexec/getty 3wire" vt100 on secure
ttyu1 "/usr/libexec/getty std.9600" dialup off secure
ttyu2 "/usr/libexec/getty std.9600" dialup off secure
ttyu3 "/usr/libexec/getty std.9600" dialup off secure
Modified: head/etc/etc.ia64/ttys
==============================================================================
--- head/etc/etc.ia64/ttys Sun Mar 9 21:02:23 2014 (r262956)
+++ head/etc/etc.ia64/ttys Sun Mar 9 21:06:22 2014 (r262957)
@@ -41,8 +41,8 @@ ttyv7 "/usr/libexec/getty Pc" xterm off
ttyv8 "/usr/local/bin/xdm -nodaemon" xterm off secure
# Serial terminals. The 'dialup' keyword identifies dialin lines to login,
# fingerd etc.
-ttyu0 "/usr/libexec/getty std.9600" vt100 on secure
-ttyu1 "/usr/libexec/getty std.9600" vt100 on secure
+ttyu0 "/usr/libexec/getty 3wire" vt100 on secure
+ttyu1 "/usr/libexec/getty 3wire" vt100 on secure
ttyu2 "/usr/libexec/getty std.9600" dialup off secure
ttyu3 "/usr/libexec/getty std.9600" dialup off secure
# Dumb console
Modified: head/etc/etc.mips/ttys
==============================================================================
--- head/etc/etc.mips/ttys Sun Mar 9 21:02:23 2014 (r262956)
+++ head/etc/etc.mips/ttys Sun Mar 9 21:06:22 2014 (r262957)
@@ -30,7 +30,7 @@
console none unknown off secure
# Serial terminals
# The 'dialup' keyword identifies dialin lines to login, fingerd etc.
-ttyu0 "/usr/libexec/getty std.115200" dialup on secure
+ttyu0 "/usr/libexec/getty 3wire" vt100 on secure
ttyu1 "/usr/libexec/getty std.115200" dialup off secure
ttyu2 "/usr/libexec/getty std.115200" dialup off secure
ttyu3 "/usr/libexec/getty std.115200" dialup off secure
Modified: head/etc/etc.powerpc/ttys
==============================================================================
--- head/etc/etc.powerpc/ttys Sun Mar 9 21:02:23 2014 (r262956)
+++ head/etc/etc.powerpc/ttys Sun Mar 9 21:06:22 2014 (r262957)
@@ -41,7 +41,7 @@ ttyv7 "/usr/libexec/getty Pc" xterm on
#ttyv8 "/usr/local/bin/xdm -nodaemon" xterm off secure
# Serial terminals
# The 'dialup' keyword identifies dialin lines to login, fingerd etc.
-ttyu0 "/usr/libexec/getty std.9600" vt100 on secure
+ttyu0 "/usr/libexec/getty 3wire" vt100 on secure
ttyu1 "/usr/libexec/getty std.9600" dialup off secure
ttyu2 "/usr/libexec/getty std.9600" dialup off secure
ttyu3 "/usr/libexec/getty std.9600" dialup off secure
Modified: head/etc/etc.sparc64/ttys
==============================================================================
--- head/etc/etc.sparc64/ttys Sun Mar 9 21:02:23 2014 (r262956)
+++ head/etc/etc.sparc64/ttys Sun Mar 9 21:06:22 2014 (r262957)
@@ -46,9 +46,9 @@ ttyv8 "/usr/local/bin/xdm -nodaemon" xte
# Serial terminals
# The 'dialup' keyword identifies dialin lines to login, fingerd etc.
# uart(4)
-ttyu0 "/usr/libexec/getty std.9600" vt100 on secure
-ttyu1 "/usr/libexec/getty std.9600" vt100 on secure
-ttyu2 "/usr/libexec/getty std.9600" vt100 on secure
+ttyu0 "/usr/libexec/getty 3wire" vt100 on secure
+ttyu1 "/usr/libexec/getty 3wire" vt100 on secure
+ttyu2 "/usr/libexec/getty 3wire" vt100 on secure
ttyu3 "/usr/libexec/getty std.9600" vt100 off secure
# Dumb console
dcons "/usr/libexec/getty std.9600" vt100 off secure
More information about the svn-src-all
mailing list