tty: wipe buffer if not echoing data
commit b97b3d9fb57860a60592859e332de7759fd54c2e 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: Naszlig <aszlig@nix.build> Tested-by: NMilan Broz <gmazyland@gmail.com> Tested-by: NDaniel Zatovic <daniel.zatovic@gmail.com> Tested-by: Naszlig <aszlig@nix.build> Cc: Willy Tarreau <w@1wt.eu> Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Showing
想要评论请 注册 或 登录