about summary refs log tree commit diff
path: root/nss/nss_test_errno.c
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-06-05 04:57:10 +0100
committerDJ Delorie <dj@redhat.com>2022-06-08 21:29:39 -0400
commitace9e3edbca62d978b1e8f392d8a5d78500272d9 (patch)
tree3a4720507eecdc2f45d6ee7b46c8e1c8c89fe0f9 /nss/nss_test_errno.c
parent3fdf0a205b622e40fa7e3c4ed1e4ed4d5c6c5380 (diff)
downloadglibc-ace9e3edbca62d978b1e8f392d8a5d78500272d9.tar.gz
glibc-ace9e3edbca62d978b1e8f392d8a5d78500272d9.tar.xz
glibc-ace9e3edbca62d978b1e8f392d8a5d78500272d9.zip
nss: handle stat failure in check_reload_and_get (BZ #28752)
Skip the chroot test if the database isn't loaded
correctly (because the chroot test uses some
existing DB state).

The __stat64_time64 -> fstatat call can fail if
running under an (aggressive) seccomp filter,
like Firefox seems to use.

This manifested in a crash when using glib built
with FAM support with such a Firefox build.

Suggested-by: DJ Delorie <dj@redhat.com>
Signed-off-by: Sam James <sam@gentoo.org>
Reviewed-by: DJ Delorie <dj@redhat.com>
Diffstat (limited to 'nss/nss_test_errno.c')
0 files changed, 0 insertions, 0 deletions