• Petr Písař's avatar
    tty: Clean console safely · f8df13e0
    Petr Písař authored
    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: default avatarPetr Písař <ppisar@redhat.com>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
    f8df13e0
vt.c 102 KB