Files
linux/drivers/tty
Greg Kroah-Hartman b1d099cb38 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>
2023-05-15 09:59:16 +09:00
..
2023-05-15 09:59:16 +09:00
2018-05-09 21:14:17 -07:00
2016-03-07 16:11:14 -08:00
2023-05-15 09:59:14 +09:00
2016-02-14 14:36:04 -08:00