xenconsole: add option to avoid escape sequences in log
authorMarek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
Tue, 31 Jul 2018 03:15:32 +0000 (05:15 +0200)
committerWei Liu <wei.liu2@citrix.com>
Wed, 1 Aug 2018 09:23:24 +0000 (10:23 +0100)
commitdeb0e164dee2ffb92846d3046452930e6fc3b384
tree2208ae2285cd1c6c357fa7024f41c02888a1a57e
parent98b92f26019bab403d3e5fa74dbec4bf8a541de4
xenconsole: add option to avoid escape sequences in log

Add --replace-escape option to xenconsoled, which replaces ESC with
'.' in console output written to log file. This makes it slightly safer
to do tail -f on a console output of untrusted guest.
The pty output is unaffected by this option.

Signed-off-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
[ wei: move variables into a narrower scope ]
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
tools/console/daemon/io.c
tools/console/daemon/main.c