]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Disable some more unsafe things in (low level) console mode:
authorbde <bde@FreeBSD.org>
Mon, 15 Aug 2016 15:34:53 +0000 (15:34 +0000)
committerbde <bde@FreeBSD.org>
Mon, 15 Aug 2016 15:34:53 +0000 (15:34 +0000)
commit45d52f311895687aef7301e0aca04c14d7375ca1
treefd6484f48949f982e0e1c651cddd9d6e752ac5ac
parent2805aa31050e1b8faf9cfd29cface41eb03d9815
Disable some more unsafe things in (low level) console mode:
- never call up to the tty layer to restart output for keyboard input in
  console mode.  This was already disallowed in kdb mode.  Other cases
  are rarely reached.
- disable the reboot, halt and powerdown keys in console mode.  The suspend,
  standby and panic keys are still allowed, and aren't even conditonal
  on excessive configuration options.  Some of these actions are still
  available in ddb mode as ddb commands which are equally unsafe.  Some
  are useful at input prompts and should be restored when the locking is
  fixed.
- disallow bells in kdb mode (should be in console mode, but the flag for
  that is not available).  Visual bell gives very alarming behaviour by
  trying to use callouts which don't work in kdb mode.  Audio bell uses
  timeouts and hardware resources with mutexes that can deadlock in
  reasonable use of ddb.

Screen switches in kdb mode are not very safe, but they are important
functionality and there is a lot of code to make them sort of work.
sys/dev/syscons/syscons.c