From: Petr Písař Date: Fri, 15 Apr 2011 08:08:08 +0000 (+0200) Subject: tty: Clean console safely X-Git-Tag: v3.0-rc1~338^2~25 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f8df13e0a901fe55631fed66562369b4dba40f8b;p=pandora-kernel.git tty: Clean console safely Traditional \E[2J sequence erases console display but scroll-back buffer and underlying device (frame) buffer keep data that can be accessed by scrolling console back. This patch introduce new \E[J parameter 3 that allows to scramble scroll-back buffer explicitly. Session locking programs (screen, vlock) can use it to prevent attacker to browse locked console history. Signed-off-by: Petr Písař Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed