public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc] nptl/tst-setuid1-static: Improve isolation from system objects
@ 2020-04-27 16:38 Florian Weimer
  0 siblings, 0 replies; only message in thread
From: Florian Weimer @ 2020-04-27 16:38 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=def674652eeac60c386d04733318b311f8a5b620

commit def674652eeac60c386d04733318b311f8a5b620
Author: Florian Weimer <fweimer@redhat.com>
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)),)


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-04-27 16:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-27 16:38 [glibc] nptl/tst-setuid1-static: Improve isolation from system objects Florian Weimer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).