mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: colbuse@ensisun.imag.fr
To: linux-kernel@vger.kernel.org
Subject: [2.4]drivers/char/console.c: check if caller is proprietary of the current console
Date: Tue, 29 Mar 2005 20:15:41 +0200	[thread overview]
Message-ID: <1112120141.42499b4d13aa1@webmail.imag.fr> (raw)


This patch adds a verification that the calling process is writing to the
current console, in the DEC alignment screen test.

(The bug can be observed by typing :
  $chvt 2 && sleep 1 && echo -e "\033#8" 
in vt1.)

Signed-off-by: Emmanuel Colbus <emmanuel.colbus@ensimag.imag.fr>
   
---

This patch was already sent on:
- 04 Jan 2005


--- old/drivers/char/console.c 2005-01-03 15:51:22.000000000 +0100
+++ patched/drivers/char/console.c 2005-01-03 15:31:45.000000000
+0100
@@ -1781,7 +1781,7 @@
			csi_J(currcons, 2);
			video_erase_char =
				(video_erase_char & 0xff00) | ' ';  
-			do_update_region(currcons, origin,screenbuf_size/2);
+			update_region(currcons, origin, screenbuf_size/2);
		}
		return;
	case ESsetG0:

  
--
Emmanuel Colbus
Club Gnu/LInux 
ENSIMAG - Departement telecoms


-------------------------------------------------
envoyé via Webmail/IMAG !


                 reply	other threads:[~2005-03-29 18:15 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1112120141.42499b4d13aa1@webmail.imag.fr \
    --to=colbuse@ensisun.imag.fr \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®