aboutsummaryrefslogtreecommitdiff
path: root/nscd/selinux.c
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2020-07-16 16:21:28 +0200
committerFlorian Weimer <fweimer@redhat.com>2020-07-21 07:33:08 +0200
commit23ed36735af09c258e542266aaed92cdd8571c6c (patch)
tree9e04621817d3613667d652b58b32f5854c416073 /nscd/selinux.c
parent299210c1fa67e2dfb564475986fce11cd33db9ad (diff)
downloadglibc-23ed36735af09c258e542266aaed92cdd8571c6c.tar
glibc-23ed36735af09c258e542266aaed92cdd8571c6c.tar.gz
glibc-23ed36735af09c258e542266aaed92cdd8571c6c.tar.bz2
glibc-23ed36735af09c258e542266aaed92cdd8571c6c.zip
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>
Diffstat (limited to 'nscd/selinux.c')
0 files changed, 0 insertions, 0 deletions