Hugh Dickins
f4d43bd579
fix compat console unimap regression
...
Why is it that since the 2f1a2ccb9c0de632ab07193becf5f7121794f6ae console
UTF-8 fixes went into 2.6.22-rc1, the PowerMac G5 shows only inverse video
question marks for the text on tty2-6? whereas tty1 is fine, and so is x86.
No fault of that patch: by removing the old fallback behaviour, it reveals
that 32-bit setfont running on 64-bit kernels has only really worked on
the current console, the rest getting faked by that inadequate fallback.
Bring the compat do_unimap_ioctl into line with the main one: PIO_UNIMAP
and GIO_UNIMAP apply to the specified tty, not redirected to fg_console.
Use the same checks, and most particularly, remember to check access_ok:
con_set_unimap and con_get_unimap are using __get_user and __put_user.
And the compat vt_check should ask for the same capability as the main
one, CAP_SYS_TTY_CONFIG rather than CAP_SYS_ADMIN. Added in vt_ioctl's
vc_cons_allocated check for safety, though failure may well be impossible.
Signed-off-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-05-25 17:37:46 -07:00
..
2007-05-21 09:18:19 -07:00
2007-05-17 05:23:04 -07:00
2007-05-21 09:18:19 -07:00
2007-05-21 09:18:19 -07:00
2007-05-11 08:29:36 -07:00
2007-05-11 08:29:36 -07:00
2007-05-17 05:23:04 -07:00
2007-05-17 05:23:04 -07:00
2007-05-17 05:23:04 -07:00
2007-05-21 09:18:19 -07:00
2007-05-21 09:18:19 -07:00
2007-05-07 12:12:51 -07:00
2007-05-02 18:57:59 -07:00
2007-05-08 11:14:59 -07:00
2007-05-07 12:26:27 -07:00
2007-05-23 20:14:15 -07:00
2007-05-17 05:23:04 -07:00
2007-05-08 11:15:07 -07:00
2007-05-17 05:23:04 -07:00
2007-05-17 05:23:04 -07:00
2007-05-17 05:23:04 -07:00
2007-05-17 05:23:04 -07:00
2007-05-08 11:14:59 -07:00
2007-05-23 20:14:13 -07:00
2007-05-21 09:18:19 -07:00
2007-05-21 09:18:19 -07:00
2007-05-21 09:18:19 -07:00
2007-05-08 11:14:57 -07:00
2007-05-21 09:18:19 -07:00
2007-02-12 09:48:47 -08:00
2007-05-17 05:23:04 -07:00
2007-05-17 05:23:04 -07:00
2007-05-09 08:58:16 +02:00
2007-05-09 08:58:16 +02:00
2007-05-17 05:23:04 -07:00
2007-05-17 05:23:04 -07:00
2007-05-14 19:33:46 -04:00
2007-05-21 09:18:19 -07:00
2007-02-12 09:48:46 -08:00
2007-05-21 09:18:19 -07:00
2007-05-24 11:18:18 -04:00
2006-10-20 10:26:41 -07:00
2007-05-21 09:18:19 -07:00
2006-12-07 08:39:46 -08:00
2007-05-21 09:18:19 -07:00
2007-05-25 11:06:37 -07:00
2007-05-17 05:23:04 -07:00
2007-05-21 21:38:17 -07:00
2007-05-17 05:23:04 -07:00
2007-05-17 05:23:04 -07:00
2007-05-21 09:18:19 -07:00
2007-05-23 20:14:13 -07:00
2007-05-17 05:23:04 -07:00
2007-05-21 09:18:19 -07:00
2007-05-21 09:18:19 -07:00
2007-05-17 05:23:04 -07:00
2007-05-21 09:18:19 -07:00
2007-05-17 05:23:04 -07:00
2007-02-12 09:48:46 -08:00
2007-05-17 05:23:04 -07:00
2007-05-11 08:29:37 -07:00
2007-05-11 08:29:36 -07:00
2007-05-08 11:15:07 -07:00
2007-05-08 11:15:07 -07:00
2006-12-08 08:28:41 -08:00
2007-05-08 11:15:07 -07:00
2007-05-08 11:15:15 -07:00
2007-05-08 11:15:07 -07:00
2007-02-09 10:45:33 -08:00
2007-05-21 09:18:19 -07:00
2007-05-08 11:15:07 -07:00
2006-10-04 06:51:26 -06:00
2007-05-07 12:12:55 -07:00
2007-05-17 05:23:04 -07:00
2007-05-21 09:15:32 -07:00
2007-04-04 21:12:47 -07:00
2007-05-25 17:37:46 -07:00
2007-05-23 20:14:12 -07:00
2007-05-08 11:15:07 -07:00
2006-12-07 08:39:25 -08:00
2007-05-09 12:54:17 -07:00
2006-12-08 08:28:41 -08:00
2007-05-17 05:23:05 -07:00
2007-02-11 10:51:31 -08:00
2007-05-18 13:09:34 -07:00
2007-05-15 08:54:00 -07:00
2007-05-23 20:14:13 -07:00
2006-12-10 09:57:22 -08:00
2007-05-21 09:18:19 -07:00
2007-05-08 11:15:07 -07:00
2006-12-22 08:55:50 -08:00
2007-05-08 11:15:01 -07:00
2007-01-26 12:53:20 -08:00
2006-09-29 09:18:24 -07:00
2007-05-17 05:23:04 -07:00
2007-02-12 09:48:28 -08:00
2007-05-08 11:15:11 -07:00
2007-05-08 11:15:09 -07:00
2007-05-08 11:15:02 -07:00
2007-02-12 09:48:32 -08:00
2007-05-09 08:58:15 +02:00
2007-05-21 14:34:00 +09:00
2007-05-09 06:44:57 +02:00
2007-05-17 05:23:04 -07:00
2007-05-11 08:29:36 -07:00
2006-12-07 08:39:25 -08:00
2007-05-11 08:29:35 -07:00
2007-05-11 05:38:26 -04:00
2007-05-08 11:15:12 -07:00
2006-06-30 19:25:36 +02:00
2006-09-30 20:52:31 +02:00
2007-05-08 20:10:00 -07:00
2007-05-08 11:15:03 -07:00
2007-05-08 11:15:11 -07:00
2006-12-08 08:28:51 -08:00
2006-10-01 00:39:19 -07:00
2006-03-23 07:38:11 -08:00
2007-05-17 05:23:05 -07:00
2007-05-08 11:14:59 -07:00
2006-10-01 00:39:28 -07:00
2007-05-08 11:15:09 -07:00
2007-05-09 07:10:02 +02:00
2006-12-08 08:28:41 -08:00
2007-05-23 20:14:14 -07:00
2007-05-08 08:46:19 +02:00
2007-02-19 14:21:50 -08:00
2007-05-08 11:15:07 -07:00
2007-05-08 11:15:01 -07:00
2007-05-08 11:15:04 -07:00
2007-05-18 13:09:34 -07:00
2007-05-08 11:15:18 -07:00
2007-02-14 08:09:54 -08:00
2007-05-11 05:38:26 -04:00