Files
linux/drivers/tty
Greg Kroah-Hartman 2b7e9180b4 tty: wipe buffer if not echoing data
commit b97b3d9fb5 upstream.

If we are not echoing the data to userspace or the console is in icanon
mode, then perhaps it is a "secret" so we should wipe it once we are
done with it.

This mirrors the logic that the audit code has.

Reported-by: aszlig <aszlig@nix.build>
Tested-by: Milan Broz <gmazyland@gmail.com>
Tested-by: Daniel Zatovic <daniel.zatovic@gmail.com>
Tested-by: aszlig <aszlig@nix.build>
Cc: Willy Tarreau <w@1wt.eu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-12-01 09:46:41 +01:00
..
2011-03-31 11:26:23 -03:00
2018-12-01 09:46:41 +01:00
2015-10-17 21:14:06 -07:00
2015-11-20 16:19:54 -08:00
2018-12-01 09:46:40 +01:00
2015-10-17 21:32:21 -07:00