aboutsummaryrefslogtreecommitdiff
path: root/nptl
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2020-10-30 11:09:55 -0700
committerH.J. Lu <hjl.tools@gmail.com>2020-11-03 12:04:42 -0800
commitfbb71eddb3b392982df12ba432d19f347c3799f6 (patch)
treea28b952c5e6671df94c7cdb44759057def868c00 /nptl
parente156dabc766d6f6f99ce9402999eae380a3ec1f2 (diff)
downloadglibc-fbb71eddb3b392982df12ba432d19f347c3799f6.tar
glibc-fbb71eddb3b392982df12ba432d19f347c3799f6.tar.gz
glibc-fbb71eddb3b392982df12ba432d19f347c3799f6.tar.bz2
glibc-fbb71eddb3b392982df12ba432d19f347c3799f6.zip
tst-setuid1-static-ENV: Add $(common-objpfx)nss [BZ #26820]
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. missed $(common-objpfx)nss. Add $(common-objpfx)nss to LD_LIBRARY_PATH for tst-setuid1-static to support struct passwd *pwd = getpwnam ("nobody"); in nptl/tst-setuid1.c.
Diffstat (limited to 'nptl')
-rw-r--r--nptl/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/nptl/Makefile b/nptl/Makefile
index d47e8a81d9..f4134916b2 100644
--- a/nptl/Makefile
+++ b/nptl/Makefile
@@ -614,7 +614,7 @@ tst-audit-threads-ENV = LD_AUDIT=$(objpfx)tst-audit-threads-mod1.so
# The test uses dlopen indirectly and would otherwise load system
# objects.
tst-setuid1-static-ENV = \
- LD_LIBRARY_PATH=$(objpfx):$(common-objpfx):$(common-objpfx)elf
+ LD_LIBRARY_PATH=$(objpfx):$(common-objpfx):$(common-objpfx)elf:$(common-objpfx)nss
# The tests here better do not run in parallel.
ifeq ($(run-built-tests),yes)