Skip to content
Commit b97b3d9f authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman Committed by Greg Kroah-Hartman
Browse files

tty: wipe buffer if not echoing data



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: default avataraszlig <aszlig@nix.build>
Tested-by: default avatarMilan Broz <gmazyland@gmail.com>
Tested-by: default avatarDaniel Zatovic <daniel.zatovic@gmail.com>
Tested-by: default avataraszlig <aszlig@nix.build>
Cc: Willy Tarreau <w@1wt.eu>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent c9a8e5fc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment