]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] vcsa attribute bits -> ioctl(VT_GETHIFONTMASK)
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Sun, 27 Aug 2006 08:23:39 +0000 (01:23 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 27 Aug 2006 18:01:29 +0000 (11:01 -0700)
commitd9a5848c83c5d3900c45a1c63115487f2f59299e
tree04145dcb5d7499fb2f8899a42ac0350c6e55203a
parent346f27600414b2325ffe42c97a9a8603c22b6f52
[PATCH] vcsa attribute bits -> ioctl(VT_GETHIFONTMASK)

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>
drivers/char/vt_ioctl.c
include/linux/compat_ioctl.h
include/linux/vt.h