From: Kay Sievers Date: Sat, 05 Aug 2006 00:40:45 +0000 Subject: Re: [PATCH] Only lookup uid/gid when applying rules Message-Id: <1154738445.3540.42.camel@pim.off.vrfy.org> List-Id: References: <200608011135.25769.uberlord@gentoo.org> In-Reply-To: <200608011135.25769.uberlord@gentoo.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: linux-hotplug@vger.kernel.org On Sat, 2006-08-05 at 02:29 +0200, Marco d'Itri wrote: > On Aug 05, Kay Sievers wrote: >=20 > > Currently - with or without this patch - on a LDAP configuration that > > does not return anything on bootup, we assign all OWNER/GROUP > > permissions to "root". This can't be fixed later in the boot cycle, so > > we have a serious problem anyway. The question is, if we really should > > assign it to "root", or maybe fall-back to the built-in /etc/{passwd,gr= oups} > > parser?=20 > I believe that falling back to the local static database would be more > confusing. And probably useless too, since on a properly configured > system an user would be first looked up in /etc/passwd and only if not > there LDAP would be used. > Debian had similar problems, and after quickly reading his introduction > I did not find anything questionable in Roy's patch. Well, on bootup we trigger events for _all_ devices, which will use most of the rules, and we require the uid/gid to be resolved at that point in time, long before we have access to the network. That's the issue we need to solve, not to make it only faster to fail and assign "root" to all nodes, be it the daemon or the event process who's doing that. Kay ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=DEVD= EV _______________________________________________ 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