• P
    tty: Clean console safely · f8df13e0
    Petr Písař 提交于
    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: NPetr Písař <ppisar@redhat.com>
    Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
    f8df13e0
vt.c 101.6 KB