From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike Waychison Date: Fri, 27 Feb 2004 18:08:25 +0000 Subject: Re: udev - TODO update Message-Id: <403F8799.4090007@sun.com> List-Id: References: <20040212234538.GC21117@vrfy.org> In-Reply-To: <20040212234538.GC21117@vrfy.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Greg KH wrote: | On Thu, Feb 26, 2004 at 08:23:44PM -0500, Mike Waychison wrote: | |>Greg KH wrote: |>| On Thu, Feb 26, 2004 at 07:49:22PM -0500, Robert Love wrote: |>| |>|>On Thu, 2004-02-26 at 19:41, Kay Sievers wrote: |>|> |>|> |>|>>Seems that nobody cares and perhaps the recent klibc permission changes |>|>>and the multiple file config directory are enough to kill these lines? :) |>|> |>|>One thing I would like is the ability to put an identifier in the config |>|>file, say $local, and have the device node's permission set to that of |>|>the current local user. |>| |>| |>| And how does a program determine the "current local user"? |>| |> |>How about: |> |>w | awk '$2=":0" {print $1}' | | | Sure doesn't work for me on any of my boxes. | Hmm, maybe we have different procps versions (2.0.13 here). Either way, this is a variation on the utmp approach. | And remember, udev doesn't want to have to call w and awk :) Understood, this could be done some other way just as easily as Robert Love demonstrated :) I thought the /usr/* thing was solely an early initscript limitation. I guess it's also a limitation on embedded platforms (who wouldn't use $local anyway). - -- Mike Waychison Sun Microsystems, Inc. 1 (650) 352-5299 voice 1 (416) 202-8336 voice mailto: Michael.Waychison@Sun.COM http://www.sun.com ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ NOTICE: The opinions expressed in this email are held by me, and may not represent the views of Sun Microsystems, Inc. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFAP4eYdQs4kOxk3/MRAtjgAJ9vek2K4QTAacgfkKzL8KG5aiIavACfTRIU mx2MEyoeNkEDtjdic3kFBd0=Gj6V -----END PGP SIGNATURE----- ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op=click _______________________________________________ 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