linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Kay Sievers <kay.sievers@vrfy.org>
To: linux-hotplug@vger.kernel.org
Subject: Re: [PATCH] Only lookup uid/gid when applying rules
Date: Sat, 05 Aug 2006 02:42:38 +0000	[thread overview]
Message-ID: <1154745758.3540.93.camel@pim.off.vrfy.org> (raw)
In-Reply-To: <200608011135.25769.uberlord@gentoo.org>

On Sat, 2006-08-05 at 03:20 +0100, Roy Marples wrote:
> On Saturday 05 August 2006 03:05, Kay Sievers wrote:
> > On Sat, 2006-08-05 at 02:49 +0100, Roy Marples wrote:
> > > On Saturday 05 August 2006 02:35, you wrote:
> > > > Resolving in the event process will work around the current problem,
> > > > that we fail, even if we don't have a matching device, that's true, but
> > > > the real problem that we block still persists. Sure, it will solve
> > > > Gentoo's "tss" problem, but that's not enough reason to add resolving
> > > > of id's to every event process.
> > >
> > > So tell me how to fix this in udev.
> >
> > We may be able to handle a lookup timeout. You could set a reasonable
> > bind_timelimit in ldap.conf, so it will not block for more than a few
> > seconds.
> 
> Ok lets say that udev ships with a new rule that has a new user/group lookup 
> called "foo".

Udev usually ships no rules with id's, which are not part of the base
system.

> You have instantly broken existing LDAP installs that do not have foo 
> in /etc/passwd or /etc/group

Right, then you system is broken and it will result in a bootup delay,
which is acceptable.

> Now should the onus be on distro's to magically add foo even though it *may* 
> be not needed, or should it be on udev to work out if it even needs to lookup 
> the user/group "foo"?

You should fix your base-system, which is causing the trouble, simple as
that. 

And what's the problem? With that one unresolvable group name, it will
take 60 seconds to timeout on bootup waiting for ldap. Then continue,
and you can fix that problem on your system:
  time /sbin/udevd --daemon
  real    1m0.013s

If you really care about such a case, put:
  bind_timelimit 3
in your:
  /etc/ldap.conf
and it will take 6 seconds:
  time /sbin/udevd --daemon
  real    0m6.012s

You are trying to trade an valuable optimization of udev for a rare-case
configuration error that happened in your distro, cause of bad
packaging. That's really not an interesting deal.

Again, we could try to work around such an error, that would be nice to
have, but not until we are sure what's the right fix for it, and pushing
the resolving into the event processes isn't it.

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=join.php&p=sourceforge&CIDÞVDEV
_______________________________________________
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

  parent reply	other threads:[~2006-08-05  2:42 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-01 10:35 [PATCH] Only lookup uid/gid when applying rules Roy Marples
2006-08-01 12:35 ` Kay Sievers
2006-08-01 12:54 ` Roy Marples
2006-08-01 13:12 ` Kay Sievers
2006-08-01 13:56 ` Roy Marples
2006-08-04 23:32 ` Roy Marples
2006-08-05  0:04 ` Kay Sievers
2006-08-05  0:29 ` Marco d'Itri
2006-08-05  0:40 ` Kay Sievers
2006-08-05  0:43 ` Marco d'Itri
2006-08-05  0:49 ` Kay Sievers
2006-08-05  0:52 ` Marco d'Itri
2006-08-05  2:20 ` Roy Marples
2006-08-05  2:42 ` Kay Sievers [this message]
2006-08-05  2:59 ` Roy Marples
2006-08-05  3:07 ` Kay Sievers
2006-08-05  3:37 ` Roy Marples

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1154745758.3540.93.camel@pim.off.vrfy.org \
    --to=kay.sievers@vrfy.org \
    --cc=linux-hotplug@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).