diff options
author | Sergei Trofimovich <slyfox@gentoo.org> | 2021-02-05 07:32:18 +0000 |
---|---|---|
committer | DJ Delorie <dj@redhat.com> | 2021-02-05 13:07:10 -0500 |
commit | c3479fb7939898ec22c655c383454d6e8b982a67 (patch) | |
tree | 7f5a514f3602b691721804e8281304e085b7510d /manual | |
parent | 921e6f419867ae0ec15b6b5182f194a8229e7941 (diff) | |
download | glibc-c3479fb7939898ec22c655c383454d6e8b982a67.tar.gz glibc-c3479fb7939898ec22c655c383454d6e8b982a67.tar.xz glibc-c3479fb7939898ec22c655c383454d6e8b982a67.zip |
nsswitch: return result when nss database is locked [BZ #27343]
Before the change nss_database_check_reload_and_get() did not populate the '*result' value when it returned success in a case of chroot detection. This caused initgroups() to use garage pointer in the following test (extracted from unbound): ``` int main() { // load some NSS modules struct passwd * pw = getpwnam("root"); chdir("/tmp"); chroot("/tmp"); chdir("/"); // access nsswitch.conf in a chroot initgroups("root", 0); } ``` Reviewed-by: DJ Delorie <dj@redhat.com>
Diffstat (limited to 'manual')
0 files changed, 0 insertions, 0 deletions