[Rpm-maint] rpm --chroot and glibc/nscd
pmatilai at laiskiainen.org
Thu May 19 09:56:26 UTC 2011
On 05/17/2011 04:36 PM, Michael Schroeder wrote:
> On Tue, May 17, 2011 at 04:27:08PM +0300, Panu Matilainen wrote:
>> Did you try talking to glibc developers about this? Just asking so I
>> wont bother them again if they already told you to keep the pieces or
>> something to that effect...
> Not really. I was never successful when proposing something to
> Ulrich Drepper, so I didn't dare this time ;-)
> Also, I needed a fix for the old SUSE versions, so it didn't make
> much sense to ask for some new functionality.
> But I agree that support in glibc would be much better than this
> hack. Note that you have to both delete the ncsd connection and
> flush the nss setup.
Hmm, background research (trying to avoid my head getting severed for
asking dumb questions ;) turned up this in glibc's nss.h:
/* Overwrite service selection for database DBNAME using specification
This function should only be used by system programs which have to
work around non-existing services (e.e., while booting).
Attention: Using this function repeatedly will slowly eat up the
whole memory since previous selection data cannot be freed. */
extern int __nss_configure_lookup (__const char *__dbname,
__const char *__string) __THROW;
That looks fairly promising, and it should bypass nscd too at least in
newest glibc versions:
- Panu -
More information about the Rpm-maint