From 429029a73ec2dba7f808f69ec8b9e3d84e13e804 Mon Sep 17 00:00:00 2001 From: DJ Delorie Date: Fri, 15 Jan 2021 19:50:00 -0500 Subject: nsswitch: do not reload if "/" changes https://sourceware.org/bugzilla/show_bug.cgi?id=27077 Before reloading nsswitch.conf, verify that the root directory hasn't changed - if it has, it's likely that we've entered a container and should not trust the nsswitch inside the container nor load any shared objects therein. Reviewed-by: Carlos O'Donell --- nss/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nss/Makefile') diff --git a/nss/Makefile b/nss/Makefile index 5f6bf598a1..0906202db9 100644 --- a/nss/Makefile +++ b/nss/Makefile @@ -67,7 +67,7 @@ tests-container = \ tst-nss-files-hosts-long \ tst-nss-db-endpwent \ tst-nss-db-endgrent \ - tst-reload1 + tst-reload1 tst-reload2 # Tests which need libdl ifeq (yes,$(build-shared)) -- cgit 1.4.1