Staging
v0.5.1
https://github.com/torvalds/linux
Revision 533475d3d48eb839be2b57f6b020150abae91063 authored by Samuel Thibault on 27 August 2006, 08:23:39 UTC, committed by Linus Torvalds on 27 August 2006, 18:01:29 UTC
When reading /dev/vcsa while a font with more than 256 characters is
loaded, one of the attribute bits records the 9th bit of the character.
But depending on the console driver (vgacon or fbcon for instance), that's
bit 3 or bit 0.  And there is no way for userland to know that, thus no way
for userland to safely grab the screen content.  So here is a (tested)
patch:

Add a VT_GETHIFONTMASK ioctl for knowing which bit is the 9th bit for VC
text (vc_hi_font_mask field of the vc_data structure).

Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
1 parent b8cf368
History
Tip revision: 533475d3d48eb839be2b57f6b020150abae91063 authored by Samuel Thibault on 27 August 2006, 08:23:39 UTC
[PATCH] vcsa attribute bits -> ioctl(VT_GETHIFONTMASK)
Tip revision: 533475d
File Mode Size
Documentation
arch
block
crypto
drivers
fs
include
init
ipc
kernel
lib
mm
net
scripts
security
sound
usr
.gitignore -rw-r--r-- 521 bytes
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 87.4 KB
Kbuild -rw-r--r-- 1.2 KB
MAINTAINERS -rw-r--r-- 71.0 KB
Makefile -rw-r--r-- 46.5 KB
README -rw-r--r-- 16.2 KB
REPORTING-BUGS -rw-r--r-- 3.0 KB

README

back to top