mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-28 00:21:52 +03:00
nsswitch: do not reload if "/" changes
https://sourceware.org/bugzilla/show_bug.cgi?id=27077 Before reloading nsswitch.conf, verify that the root directory hasn't changed - if it has, it's likely that we've entered a container and should not trust the nsswitch inside the container nor load any shared objects therein. Reviewed-by: Carlos O'Donell <carlos@redhat.com>
This commit is contained in:
@ -87,6 +87,9 @@ bool __nss_module_load (struct nss_module *module) attribute_hidden;
|
||||
void *__nss_module_get_function (struct nss_module *module, const char *name)
|
||||
attribute_hidden;
|
||||
|
||||
/* Block attempts to dlopen any module we haven't already opened. */
|
||||
void __nss_module_disable_loading (void);
|
||||
|
||||
/* Called from __libc_freeres. */
|
||||
void __nss_module_freeres (void) attribute_hidden;
|
||||
|
||||
|
Reference in New Issue
Block a user