diff options
author | Florian Weimer <fweimer@redhat.com> | 2021-07-07 18:33:52 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2021-07-07 18:33:52 +0200 |
commit | f9c8b11ed7726b858cd7b7cea0d3d7c5233d78cf (patch) | |
tree | 7a7ebab1e97c4fb74bd7bdf2cee773557d83bdd8 /nss/nss_module.h | |
parent | 6212bb67f4695962748a5981e1b9fea105af74f6 (diff) | |
download | glibc-f9c8b11ed7726b858cd7b7cea0d3d7c5233d78cf.tar glibc-f9c8b11ed7726b858cd7b7cea0d3d7c5233d78cf.tar.gz glibc-f9c8b11ed7726b858cd7b7cea0d3d7c5233d78cf.tar.bz2 glibc-f9c8b11ed7726b858cd7b7cea0d3d7c5233d78cf.zip |
nss: Access nss_files through direct references
This partially fixes static-only NSS support (bug 27959): The files
module no longer needs dlopen. Support for the dns module remains
to be added, and also support for disabling dlopen altogether.
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'nss/nss_module.h')
-rw-r--r-- | nss/nss_module.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/nss/nss_module.h b/nss/nss_module.h index 05c4791d11..c1a1d90b60 100644 --- a/nss/nss_module.h +++ b/nss/nss_module.h @@ -38,6 +38,10 @@ struct nss_module_functions typedef void *nss_module_functions_untyped[sizeof (struct nss_module_functions) / sizeof (void *)]; +/* Locate the nss_files functions, as if by dlopen/dlsym. */ +void __nss_files_functions (nss_module_functions_untyped pointers) + attribute_hidden; + /* Initialization state of a NSS module. */ enum nss_module_state { |