Bug 684261
Summary: | RFE: command to clear scrollback buffer in linux terminal | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Miroslav Lichvar <mlichvar> | ||||
Component: | kernel | Assignee: | Kernel Maintainer List <kernel-maint> | ||||
Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | unspecified | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | rawhide | CC: | gansalmon, itamar, jirislaby, jonathan, kernel-maint, madhu.chinakonda, ppisar, psabata | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
URL: | http://thread.gmane.org/gmane.linux.kernel/1117336 | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | |||||||
: | 714684 (view as bug list) | Environment: | |||||
Last Closed: | 2011-07-19 14:46:28 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 683733, 691406 | ||||||
Attachments: |
|
Description
Miroslav Lichvar
2011-03-11 15:58:50 UTC
Created attachment 487076 [details]
Proposed fix
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.
Tested on VGA and FB_VGA16 console in qemu.
post it to linux-kernel.org We'll pick it up when we rebase if it gets merged. Merged to Linus' linux-2.6: http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=f8df13e0a901fe55631fed66562369b4dba40f8b This seems to work with current kernels. (In reply to Petr Pisar from comment #1) > Created attachment 487076 [details] > Proposed fix Why do you divide the size by 2? This results in erasure of only half of the buffer... (Note scr_memsetw proper divides the size by 2.) I'm sorry, I don't recall after 5 years. Maybe this was not true at that time. Or there were some differences between text mode and frame buffer backed virtual console. I don't know. scr_memsetw always accepted size, not count. So I assume it is a bug and I will fix it. |