olga / rpms / glibc

Forked from rpms/glibc 5 years ago
Clone

Blame SOURCES/glibc-rh1452721-1.patch

00db10
commit TBD
00db10
Author: Florian Weimer <fweimer@redhat.com>
00db10
Date:   Fri May 19 17:46:47 2017 +0200
00db10
00db10
    rtld: Completely ignore LD_LIBRARY_PATH for AT_SECURE=1 programs
00db10
00db10
LD_LIBRARY_PATH can only be used to reorder system search paths, which
00db10
is not useful functionality.
00db10
00db10
Index: glibc-2.17-c758a686/elf/rtld.c
00db10
===================================================================
00db10
--- glibc-2.17-c758a686.orig/elf/rtld.c
00db10
+++ glibc-2.17-c758a686/elf/rtld.c
00db10
@@ -2580,7 +2701,8 @@ process_envvars (enum mode *modep)
00db10
 
00db10
 	case 12:
00db10
 	  /* The library search path.  */
00db10
-	  if (memcmp (envline, "LIBRARY_PATH", 12) == 0)
00db10
+	  if (!__libc_enable_secure
00db10
+	      && memcmp (envline, "LIBRARY_PATH", 12) == 0)
00db10
 	    {
00db10
 	      library_path = &envline[13];
00db10
 	      break;