]> sourceware.org Git - glibc.git/commitdiff
nptl/tst-setuid1-static: Improve isolation from system objects
authorFlorian Weimer <fweimer@redhat.com>
Mon, 27 Apr 2020 13:00:14 +0000 (15:00 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Mon, 27 Apr 2020 16:38:27 +0000 (18:38 +0200)
Static dlopen needs an LD_LIBRARY_PATH setting to avoid loading system
libraries.

nptl/Makefile

index 33fa03807e8907ca2b1616077df623b6a6d7aa20..ef9a6eb5615cc3bb5c586b9b83e8f8d5f75bbd2a 100644 (file)
@@ -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)),)
This page took 0.03991 seconds and 5 git commands to generate.