From: Kay Sievers Date: Tue, 01 Aug 2006 12:35:58 +0000 Subject: Re: [PATCH] Only lookup uid/gid when applying rules Message-Id: <1154435758.7116.35.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 Tue, 2006-08-01 at 11:35 +0100, Roy Marples wrote: > Attached is a patch that stops udev from doing a uid/gid lookup unless it= is=20 > actually going to use the rule. Nope, that doesn't really help, we want to to resolve the names once on udevd startup and not from every event process again and again. You may introduce a flag to udevd that tells to use only the built-in passwd parser. And also to wait only once for a timeout of getpwnam() and then automatically switch to the built-in parser. A later reload-rules event would try to use getpwnam() again, so you can update udevd when your network is available. > This is important as udev ships with rules for user/group names that may = not=20 > exist in /etc/passwd. Normally this would not be a problem, but if a syst= em=20 > is configured for LDAP, NIS or some other off line system at boot time th= en=20 > things get very nasty. Right, this should be fixed, but in a different way. Thanks, 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