From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christer Palm Date: Tue, 05 Feb 2002 11:21:53 +0000 Subject: Re: [Xpert]Re: User-level Tasks in Hotplug Scripts? Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org 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?? 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. -- Christer Palm _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel