glibc/nss
Florian Weimer 23ed36735a nss_compat: Do not use mmap to read database files (bug 26258)
This avoids crashes in case the files are truncated for some reason.
For typically file sizes, it is also going to be slightly faster.
Using __nss_files_fopen instead mirrors what nss_files does.

Tested-by: Carlos O'Donell <carlos@redhat.com>
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
2020-07-21 07:33:08 +02:00
..
nss_compat nss_compat: Do not use mmap to read database files (bug 26258) 2020-07-21 07:33:08 +02:00
nss_db nss_db: Use NSS_DECLARE_MODULE_FUNCTIONS 2020-02-13 09:14:51 +01:00
nss_files nss_files: Consolidate file opening in __nss_files_fopen 2020-07-21 07:32:46 +02:00
tst-nss-db-endgrent.root/etc nss_db: fix endent wrt NULL mappings [BZ #24695] [BZ #24696] 2019-07-10 14:51:18 -04:00
tst-nss-db-endpwent.root nss_db: fix endent wrt NULL mappings [BZ #24695] [BZ #24696] 2019-07-10 14:51:18 -04:00
tst-nss-files-hosts-long.root/etc
tst-nss-test3.root
alias-lookup.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
bug17079.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
bug-erange.c
compat-lookup.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
databases.def Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
db-Makefile Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
Depend
digits_dots.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
ethers-lookup.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
function.def Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
getent.c Update copyright dates not handled by scripts/update-copyrights. 2020-01-01 00:21:22 +00:00
getnssent_r.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
getnssent.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
getXXbyYY_r.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
getXXbyYY.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
getXXent_r.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
getXXent.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
grp-lookup.c Remove --enable-obsolete-nsl configure flag 2020-07-08 17:25:57 +02:00
hosts-lookup.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
key-lookup.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
makedb.c Update copyright dates not handled by scripts/update-copyrights. 2020-01-01 00:21:22 +00:00
Makefile nss_files: Consolidate file opening in __nss_files_fopen 2020-07-21 07:32:46 +02:00
netgrp-lookup.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
network-lookup.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
nss_files_fopen.c nss_files: Consolidate file opening in __nss_files_fopen 2020-07-21 07:32:46 +02:00
nss_hash.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
nss_test1.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
nss_test2.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
nss_test.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
nss_test.ver
nss.h nss: Add function types and NSS_DECLARE_MODULE_FUNCTIONS macro to <nss.h> 2020-02-13 09:14:40 +01:00
nsswitch.c Remove --enable-obsolete-nsl configure flag 2020-07-08 17:25:57 +02:00
nsswitch.conf Remove --enable-obsolete-nsl configure flag 2020-07-08 17:25:57 +02:00
nsswitch.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
proto-lookup.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
pwd-lookup.c Remove --enable-obsolete-nsl configure flag 2020-07-08 17:25:57 +02:00
rewrite_field.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
rpc-lookup.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
service-lookup.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
sgrp-lookup.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
spwd-lookup.c Remove --enable-obsolete-nsl configure flag 2020-07-08 17:25:57 +02:00
test-digits-dots.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
test-netdb.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
tst-cancel-getpwuid_r.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
tst-field.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
tst-nss-db-endgrent.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
tst-nss-db-endpwent.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
tst-nss-files-alias-leak.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
tst-nss-files-alias-truncated.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
tst-nss-files-hosts-erange.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
tst-nss-files-hosts-getent.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
tst-nss-files-hosts-long.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
tst-nss-files-hosts-multi.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
tst-nss-getpwent.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
tst-nss-static.c
tst-nss-test1.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
tst-nss-test2.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
tst-nss-test3.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
tst-nss-test4.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
tst-nss-test5.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
valid_field.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
valid_list_field.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
Versions nss_files: Consolidate file opening in __nss_files_fopen 2020-07-21 07:32:46 +02:00
XXX-lookup.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00