summary refs log tree commit diff
path: root/nptl
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2020-04-27 15:00:14 +0200
committerFlorian Weimer <fweimer@redhat.com>2020-04-27 18:38:27 +0200
commitdef674652eeac60c386d04733318b311f8a5b620 (patch)
treef1bb3d7ab95775f8fb9592a3bae6857180e2b18f /nptl
parentd96cb3767830fa21aeb7c8d420dc1809b4ee8196 (diff)
downloadglibc-def674652eeac60c386d04733318b311f8a5b620.tar.gz
glibc-def674652eeac60c386d04733318b311f8a5b620.tar.xz
glibc-def674652eeac60c386d04733318b311f8a5b620.zip
nptl/tst-setuid1-static: Improve isolation from system objects
Static dlopen needs an LD_LIBRARY_PATH setting to avoid loading system
libraries.
Diffstat (limited to 'nptl')
-rw-r--r--nptl/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/nptl/Makefile b/nptl/Makefile
index 33fa03807e..ef9a6eb561 100644
--- a/nptl/Makefile
+++ b/nptl/Makefile
@@ -714,6 +714,11 @@ tst-audit-threads-ENV = LD_AUDIT=$(objpfx)tst-audit-threads-mod1.so
 
 CFLAGS-tst-unwind-thread.c += -funwind-tables
 
+# The test uses dlopen indirectly and would otherwise load system
+# objects.
+tst-setuid1-static-ENV = \
+  LD_LIBRARY_PATH=$(objpfx):$(common-objpfx):$(common-objpfx)elf
+
 # The tests here better do not run in parallel.
 ifeq ($(run-built-tests),yes)
 ifneq ($(filter %tests,$(MAKECMDGOALS)),)