about summary refs log tree commit diff
path: root/nss/key-lookup.c
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2022-03-11 08:23:56 +0100
committerFlorian Weimer <fweimer@redhat.com>2022-03-11 08:24:19 +0100
commit9bdf92c79d63b42f931101bb6df87129c408b0c4 (patch)
tree7efd60fdfd80e687502c0bb1c7b511010153e7a4 /nss/key-lookup.c
parentaefc79ab5ad4bb9feea2876720cec70dca7cd8ed (diff)
downloadglibc-9bdf92c79d63b42f931101bb6df87129c408b0c4.tar.gz
glibc-9bdf92c79d63b42f931101bb6df87129c408b0c4.tar.xz
glibc-9bdf92c79d63b42f931101bb6df87129c408b0c4.zip
nss: Protect against errno changes in function lookup (bug 28953)
dlopen may clobber errno.  The nss_test_errno module uses an ELF
constructor to achieve that, but there could be internal errors
during dlopen that cause this, too.  Therefore, the NSS framework
has to guard against such errno clobbers.

__nss_module_get_function is currently the only function that calls
__nss_module_load, so it is sufficient to save and restore errno
around this call.

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'nss/key-lookup.c')
0 files changed, 0 insertions, 0 deletions