This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] deprecate libnsl/libnss_*


> If it's visible to an application what libraries were loaded by an NSS 
> module, I'd consider that to be a bug (bug 16881, I think) - NSS modules 
> should be loaded in such a way that this is not visible.

Bug 16881 is not entirely clear on what it's talking about.  On the face of
it, it sounds like a problem that could only arise if something were using
RTLD_GLOBAL.  If that's all it's talking about, then that should already
not be an issue.

The broader issue is much harder to address.  Short of NSS modules being
loaded via a dlmopen-style mechanism, dependencies of NSS modules that are
also themselves dependencies of things used by the application itself
(including indirectly via other libraries it uses) will be loaded exactly
once and so depending on their initializer code and module-global state,
that might very well be visible to the application.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]