Re: [PATCHES 2.5.67] PCMCIA hotplugging, in-kernel-matching and depmod support

From: Dominik Brodowski (linux@brodo.de)
Date: Wed Apr 09 2003 - 14:48:54 EST


On Tue, Apr 08, 2003 at 07:01:39PM -0400, Jeff Garzik wrote:
> >As strings can't be passed to userspace in file2alias.c, I've chosen the
> >crc32 value of the string as the matching identifier for the userspace
> >hotplug script.
>
> This sounds like a problem to be solved, not worked around... the
> source should have the strings presented directly, and I'm sure a
> creative and smart person such as yourself can conceive of at least
> one... ;-)

OK, there might be a way to do this (and yes, I can think of one...).
However, I doubt it makes sense: using strings in depmod.c and in the
hotplug utilities is even worse than in file2alias.c. For example,
whitespace is used as delimitier for the values being parsed in hotplug
scripts. So I think the better (as simpler and thus more difficult to break)
approach is using crc32.

        Dominik
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Apr 15 2003 - 22:00:19 EST