about summary refs log tree commit diff
path: root/nss/Makefile
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2021-01-15 19:50:00 -0500
committerDJ Delorie <dj@redhat.com>2021-01-27 13:35:15 -0500
commit429029a73ec2dba7f808f69ec8b9e3d84e13e804 (patch)
treecfe71d0e361692d5aabff4d8eaa00f2638f69fe4 /nss/Makefile
parent01cdcf783a666481133d4975b1980624b0ef4799 (diff)
downloadglibc-429029a73ec2dba7f808f69ec8b9e3d84e13e804.tar.gz
glibc-429029a73ec2dba7f808f69ec8b9e3d84e13e804.tar.xz
glibc-429029a73ec2dba7f808f69ec8b9e3d84e13e804.zip
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 <carlos@redhat.com>
Diffstat (limited to 'nss/Makefile')
-rw-r--r--nss/Makefile2
1 files changed, 1 insertions, 1 deletions
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))