]> git.ipfire.org Git - thirdparty/glibc.git/commit
nss: handle stat failure in check_reload_and_get (BZ #28752)
authorSam James <sam@gentoo.org>
Sun, 5 Jun 2022 03:57:10 +0000 (04:57 +0100)
committerDJ Delorie <dj@redhat.com>
Mon, 13 Jun 2022 22:15:40 +0000 (18:15 -0400)
commitb6aade18a7e5719c942aa2da6cf3157aca993fa4
tree3c6e476fc9e4d7dddd6d2ff575fb723ee7302f6c
parentccac2d6d95600e790e0411eab0511493ae409c1f
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>
(cherry picked from commit ace9e3edbca62d978b1e8f392d8a5d78500272d9)
nss/nss_database.c