From: Roy Marples <uberlord@gentoo.org>
To: linux-hotplug@vger.kernel.org
Subject: Re: [PATCH] Only lookup uid/gid when applying rules
Date: Tue, 01 Aug 2006 13:56:49 +0000 [thread overview]
Message-ID: <200608011456.49802.uberlord@gentoo.org> (raw)
In-Reply-To: <200608011135.25769.uberlord@gentoo.org>
On Tuesday 01 August 2006 14:12, Kay Sievers wrote:
> How does that solve the problem, that you need to resolve a name when a
> rule gets applied, but you will hang in getpwnam() cause of the system
> config?
> Such an array will only reduce the number of lookups for the _same_
> name, but not solve the problem, right?
OK, it doesn't really solve the problem. The issue as I see it is that every
user/group name is looked up for each rule before events are processed.
This is bad for reasons explained earlier.
So we need to lookup the user/group at rule application time. We can
optionally store it back in the rule or in an a id/name array.
This solves the problem of a correctly configured LDAP server who does not
have the user/group "tss" in any nss DB and yet exists in a udev rule that
will never be applied.
This does not solve the problem of a poorly configured LDAP/NIS/udev system
where the user did not add tss to /etc/{passwd,group}, but the patch was not
expected to either ;)
Thanks
--
Roy Marples <uberlord@gentoo.org>
Gentoo/Linux Developer (baselayout, networking)
-------------------------------------------------------------------------
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
next prev parent reply other threads:[~2006-08-01 13:56 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 [this message]
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
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=200608011456.49802.uberlord@gentoo.org \
--to=uberlord@gentoo.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).