From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2178) id 113CB3858D35; Mon, 27 Apr 2020 16:38:43 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 113CB3858D35 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Florian Weimer To: glibc-cvs@sourceware.org Subject: [glibc] nptl/tst-setuid1-static: Improve isolation from system objects X-Act-Checkin: glibc X-Git-Author: Florian Weimer X-Git-Refname: refs/heads/master X-Git-Oldrev: d96cb3767830fa21aeb7c8d420dc1809b4ee8196 X-Git-Newrev: def674652eeac60c386d04733318b311f8a5b620 Message-Id: <20200427163843.113CB3858D35@sourceware.org> Date: Mon, 27 Apr 2020 16:38:43 +0000 (GMT) X-BeenThere: glibc-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Glibc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Apr 2020 16:38:43 -0000 https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=def674652eeac60c386d04733318b311f8a5b620 commit def674652eeac60c386d04733318b311f8a5b620 Author: Florian Weimer Date: Mon Apr 27 15:00:14 2020 +0200 nptl/tst-setuid1-static: Improve isolation from system objects Static dlopen needs an LD_LIBRARY_PATH setting to avoid loading system libraries. Diff: --- nptl/Makefile | 5 +++++ 1 file changed, 5 insertions(+) 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)),)