glibc/nss
DJ Delorie cef4c840a8 nss_db: fix endent wrt NULL mappings [BZ #24695] [BZ #24696]
nss_db allows for getpwent et al to be called without a set*ent,
but it only works once.  After the last get*ent a set*ent is
required to restart, because the end*ent did not properly reset
the module.  Resetting it to NULL allows for a proper restart.

If the database doesn't exist, however, end*ent erroniously called
munmap which set errno.

The test case runs "makedb" inside the testroot, so needs selinux
DSOs installed.

(cherry picked from commit 99135114ba)
(note: tests excluded as test-in-container infrastructure missing)
2019-10-31 17:55:49 -04:00
..
nss_compat getgrent_next_nss (compat-initgroups): Remove alloca fallback [BZ #18023] 2018-06-25 18:58:49 +02:00
nss_db nss_db: fix endent wrt NULL mappings [BZ #24695] [BZ #24696] 2019-10-31 17:55:49 -04:00
nss_files nss_files: Fix file stream leak in aliases lookup [BZ #23521] 2018-08-14 10:57:48 +02:00
alias-lookup.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
bug17079.c nss: Adjust tests to use nss_files only 2018-01-30 14:26:31 +01:00
bug-erange.c
compat-lookup.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
databases.def Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
db-Makefile Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
Depend
digits_dots.c CVE-2016-10739: getaddrinfo: Fully parse IPv4 address strings [BZ #20018] 2019-02-04 21:36:37 +01:00
ethers-lookup.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
function.def Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
getent.c getent: Use dynarray in initgroups_keys [BZ #18023] 2018-06-25 19:47:59 +02:00
getnssent_r.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
getnssent.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
getXXbyYY_r.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
getXXbyYY.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
getXXent_r.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
getXXent.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
grp-lookup.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
hosts-lookup.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
key-lookup.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
makedb.c Update copyright dates not handled by scripts/update-copyrights. 2018-01-01 00:41:16 +00:00
Makefile nss_files: Fix file stream leak in aliases lookup [BZ #23521] 2018-08-14 10:57:48 +02:00
netgrp-lookup.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
network-lookup.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
nss_hash.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
nss_test1.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
nss_test2.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
nss_test.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
nss_test.ver Extend NSS test suite 2017-07-17 15:52:44 -04:00
nss.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
nsswitch.c [BZ #20271] Add newlines in __libc_fatal calls. 2018-11-09 10:17:07 -05:00
nsswitch.conf
nsswitch.h Fix multiple definitions of __nss_*_database (bug 22918) 2018-03-03 17:44:24 +01:00
proto-lookup.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
pwd-lookup.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
rewrite_field.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
rpc-lookup.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
service-lookup.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
sgrp-lookup.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
spwd-lookup.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
test-digits-dots.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
test-netdb.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
tst-cancel-getpwuid_r.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
tst-field.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
tst-nss-files-alias-leak.c nss_files: Fix file stream leak in aliases lookup [BZ #23521] 2018-08-14 10:57:48 +02:00
tst-nss-files-hosts-erange.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
tst-nss-files-hosts-getent.c Fix copyright years in recent commits 2018-07-10 11:03:08 +02:00
tst-nss-files-hosts-multi.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
tst-nss-getpwent.c nss: Adjust tests to use nss_files only 2018-01-30 14:26:31 +01:00
tst-nss-static.c Update nss tests to new skeleton 2017-08-17 18:00:51 -04:00
tst-nss-test1.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
tst-nss-test2.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
tst-nss-test3.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
tst-nss-test4.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
tst-nss-test5.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
valid_field.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
valid_list_field.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
Versions nss: Export nscd hash function as __nss_hash [BZ #22459] 2017-11-23 14:08:11 +01:00
XXX-lookup.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00