public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Kernel design: support for multiple local users
@ 2006-05-26 16:01 Jon Smirl
  2006-05-26 16:31 ` Daniel Stone
  2006-05-26 17:17 ` Jon Smirl
  0 siblings, 2 replies; 5+ messages in thread
From: Jon Smirl @ 2006-05-26 16:01 UTC (permalink / raw)
  To: lkml

A central, unanswered question in the graphics debate is whether the
kernel should directly support multiple users logged into video cards.
Currently this is not supported. A simple example of this is a two
headed video card and two keyboards. Should the kernel support two
independent users logged into these heads and give them the ability to
control their environment without needing to be root?

This situation commonly occurs in Internet cafes, kiosks, schools,
etc. There are several out of tree patches addressing this. I also
believe there are multiple vendors selling products in this
configuration.

It is possible to set the current X server up to support this
configuration. Using the X server this way has some drawbacks. The X
server needs to be run as root. The multiple users are sharing a
single X server image so things they do can impact the other users.
Plus this solution only works for X apps. Things like VT swap must be
disabled.

An alternative model with kernel support would work something like
this. Devices are created for each video head. Devices (video, mouse,
keyboard, usb ports, cdrom, etc) are marked as belonging in a console
grouping. When you log in ownership of the grouped devices is assigned
to you.

Now that you have ownership of the devices you are able to control
them without being root. If you want to change your video mode ask
your video device to do it (this is not a comment on how the video
device achieves the mode change). Since the devices are locally owned
each user can independently run X, emacs, svglib or whatever.

I am obviously leaving out some details about how sharing the
resources of a single video card between heads is achieved. If you
prefer, think of this scenario for two installed graphics cards. This
is not an attempt to detail how to build the feature.

The question is, do we want local multiuser support in the kernel, or
should it be an application feature?

-- 
Jon Smirl
jonsmirl@gmail.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Kernel design: support for multiple local users
  2006-05-26 16:01 Kernel design: support for multiple local users Jon Smirl
@ 2006-05-26 16:31 ` Daniel Stone
  2006-05-26 17:12   ` Jon Smirl
  2006-05-26 17:17 ` Jon Smirl
  1 sibling, 1 reply; 5+ messages in thread
From: Daniel Stone @ 2006-05-26 16:31 UTC (permalink / raw)
  To: Jon Smirl; +Cc: lkml

[-- Attachment #1: Type: text/plain, Size: 370 bytes --]

On Fri, May 26, 2006 at 12:01:15PM -0400, Jon Smirl wrote:
> It is possible to set the current X server up to support this
> configuration. Using the X server this way has some drawbacks. The X
> server needs to be run as root.

So far, so good.

> The multiple users are sharing a
> single X server image so things they do can impact the other users.

No, they're not.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 191 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Kernel design: support for multiple local users
  2006-05-26 16:31 ` Daniel Stone
@ 2006-05-26 17:12   ` Jon Smirl
  2006-05-26 17:24     ` Daniel Stone
  0 siblings, 1 reply; 5+ messages in thread
From: Jon Smirl @ 2006-05-26 17:12 UTC (permalink / raw)
  To: Jon Smirl, lkml

On 5/26/06, Daniel Stone <daniel@fooishbar.org> wrote:
> On Fri, May 26, 2006 at 12:01:15PM -0400, Jon Smirl wrote:
> > It is possible to set the current X server up to support this
> > configuration. Using the X server this way has some drawbacks. The X
> > server needs to be run as root.
>
> So far, so good.
>
> > The multiple users are sharing a
> > single X server image so things they do can impact the other users.
>
> No, they're not.

So if I manage to fault my X server process, they other users a just fine?


-- 
Jon Smirl
jonsmirl@gmail.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Kernel design: support for multiple local users
  2006-05-26 16:01 Kernel design: support for multiple local users Jon Smirl
  2006-05-26 16:31 ` Daniel Stone
@ 2006-05-26 17:17 ` Jon Smirl
  1 sibling, 0 replies; 5+ messages in thread
From: Jon Smirl @ 2006-05-26 17:17 UTC (permalink / raw)
  To: lkml

Please discuss this on the thread:
Revised,  kernel design: support for multiple local users

The other thread removes references to other applications.

-- 
Jon Smirl
jonsmirl@gmail.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Kernel design: support for multiple local users
  2006-05-26 17:12   ` Jon Smirl
@ 2006-05-26 17:24     ` Daniel Stone
  0 siblings, 0 replies; 5+ messages in thread
From: Daniel Stone @ 2006-05-26 17:24 UTC (permalink / raw)
  To: Jon Smirl; +Cc: lkml

[-- Attachment #1: Type: text/plain, Size: 823 bytes --]

On Fri, May 26, 2006 at 01:12:09PM -0400, Jon Smirl wrote:
> On 5/26/06, Daniel Stone <daniel@fooishbar.org> wrote:
> >On Fri, May 26, 2006 at 12:01:15PM -0400, Jon Smirl wrote:
> >> It is possible to set the current X server up to support this
> >> configuration. Using the X server this way has some drawbacks. The X
> >> server needs to be run as root.
> >
> >So far, so good.
> >
> >> The multiple users are sharing a
> >> single X server image so things they do can impact the other users.
> >
> >No, they're not.
> 
> So if I manage to fault my X server process, they other users a just fine?

It's entirely possible, inasmuch as it's entirely possible for a rogue X
server to take out the entire machine.

When I said that each user's server was a separate process, I wasn't
making that bit up.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 191 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-05-26 17:24 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-26 16:01 Kernel design: support for multiple local users Jon Smirl
2006-05-26 16:31 ` Daniel Stone
2006-05-26 17:12   ` Jon Smirl
2006-05-26 17:24     ` Daniel Stone
2006-05-26 17:17 ` Jon Smirl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox