Re: [Xpert]Re: User-level Tasks in Hotplug Scripts?
- From: <Oliver Neukum lrz uni-muenchen de>
- To: Christer Palm <palm nogui se>
- Cc: <Oliver Neukum lrz uni-muenchen de>, Vladimir Dergachev <volodya mindspring com>, Jim Gettys <jg pa dec com>, David Brownell <david-b pacbell net>, Ryan Shaw <ryan shaw stanfordalumni org>, <linux-hotplug-devel lists sourceforge net>, <wm-spec-list gnome org>, <xpert XFree86 Org>
- Subject: Re: [Xpert]Re: User-level Tasks in Hotplug Scripts?
- Date: Tue, 5 Feb 2002 12:35:41 +0100 (MET)
On Tue, 5 Feb 2002, Christer Palm wrote:
> Oliver Neukum wrote:
>
> >>And what would the problem be with using an event distribution mechanism
> >>that would require the listener to have certain privileges?
> >>
> >
> > You may not want to base the distribution on privileges but on identity. eg
> > you want to associate some ports with some keyboards.
> > But in principle such a scheme should work.
> >
>
>
> Not only in principle, but also in practice, as I stated earlier. I
> would suggest having a look at "man pam_console", which is the way this
> kind of stuff is currently implemented.
>
> There is no concept of more than one "local", i.e. console, user in
> Linux (or any other OS that I know of, for that matter), and changing
> that would be quite some work. Except for obscure vintage machines, does
> computers with more than one direct-attached keyboard even exist??
Support for more than one local user is a cornerstone of X and supported
in the kernel as well. In fact the X people are reportedly proud that
they've made it work.
Linux does support several graphics adapters, X supports the
machine:console.monitor notation and you can hook up dozens of
USB keyboards let alone terminals.
One local user is the typical case, but others must in principle work.
> Anyway, in Linux, PAM is usually what (automatically) provides the
> mapping between session and privileges. You could add your own PAM
> module to associate the necessary privileges with a user session based
> on whatever parameters you want.
You need filtering events as well. I don't want anybody to know
that I've plugged a webcam into the hub in my bedroom.
Regards
Oliver
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]