Re: [PATCH] console: Add persistent scrollback buffers for all VGA consoles

From: Manuel Schoelling
Date: Sat May 31 2014 - 05:49:54 EST


On Sa, 2014-05-31 at 00:26 +0200, Jakub Wilk wrote:
> * Manuel SchÃlling <manuel.schoelling@xxxxxx>, 2014-05-30, 15:27:
> >Add a scrollback buffers for each VGA console. The benefit is that the
> >scrollback history is not flushed when switching between consoles but
> >is persistent.
>
> Some people rely on this scrollback flushing as a security feature. Is
> there even another way to clear the scrollback, than to switch to
> another vt and then back again?
Thanks for raising this security issue! Maybe we should add something
like VT_FLUSH_SCROLLBACK to vt_ioctl()? [1]
I'm open for better ways to flush the scrollback history.

[1] http://lxr.free-electrons.com/source/drivers/tty/vt/vt_ioctl.c#L334

> Debian ships this:
> http://manpages.debian.org/cgi-bin/man.cgi?query=clear_console
> https://sources.debian.net/src/bash/4.2%2Bdfsg-0.1/debian/clear_console.c
>


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/