From: Vojtech Pavlik <vojtech@suse.cz>
To: Linus Torvalds <torvalds@osdl.org>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
akpm@osdl.org, vojtech@suse.de
Subject: Re: Breakage from patch: Only root should be able to set the N_MOUSE line discipline.
Date: Tue, 1 Mar 2005 17:33:22 +0100 [thread overview]
Message-ID: <20050301163322.GA11034@ucw.cz> (raw)
In-Reply-To: <Pine.LNX.4.58.0503010814580.25732@ppc970.osdl.org>
On Tue, Mar 01, 2005 at 08:17:47AM -0800, Linus Torvalds wrote:
> On Tue, 1 Mar 2005, Vojtech Pavlik wrote:
> >
> > A nonprivileged user could inject mouse movement and/or keystrokes
> > (using the sunkbd driver) into the input subsystem, taking over the
> > console/X, where another user is logged in.
> >
> > Simply using a slightly modified inputattach on a PTY will do the trick.
>
> Might an alternative be to just make writes to N_MOUSE require privileges?
>
> Ie "reading is ok, and changing to N_MOUSE is ok, but tryign to write a
> mouse packet is not"? The check should be easy enough to add to the
> ldisc.write thing?
No, since you wouldn't write anything to the device, the writes would
happen on the other end of the pty.
--
Vojtech Pavlik
SuSE Labs, SuSE CR
prev parent reply other threads:[~2005-03-01 16:31 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200502030209.j1329xTG013818@hera.kernel.org>
2005-02-26 11:20 ` Breakage from patch: Only root should be able to set the N_MOUSE line discipline Alan Cox
2005-03-01 11:47 ` Vojtech Pavlik
2005-03-01 15:57 ` Alan Cox
2005-03-01 16:17 ` Linus Torvalds
2005-03-01 16:33 ` Vojtech Pavlik [this message]
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=20050301163322.GA11034@ucw.cz \
--to=vojtech@suse.cz \
--cc=akpm@osdl.org \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@osdl.org \
--cc=vojtech@suse.de \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.