summary refs log tree commit diff
path: root/elf
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-08-27 20:52:37 +0000
committerUlrich Drepper <drepper@redhat.com>1998-08-27 20:52:37 +0000
commit45769315c5deb6e9c9f0ac6dc2cd9e5460f8e16d (patch)
treeb84d22b522fa6eff331c931a6cb8f5196460f5c8 /elf
parent5f62394167f5df4565e6e07e1e16c56021626e50 (diff)
downloadglibc-45769315c5deb6e9c9f0ac6dc2cd9e5460f8e16d.tar.gz
glibc-45769315c5deb6e9c9f0ac6dc2cd9e5460f8e16d.tar.xz
glibc-45769315c5deb6e9c9f0ac6dc2cd9e5460f8e16d.zip
(process_envvars): Only use LD_ORIGIN_PATH if !enable secure.
Diffstat (limited to 'elf')
-rw-r--r--elf/rtld.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/elf/rtld.c b/elf/rtld.c
index 600f062b3c..283ea7e2a7 100644
--- a/elf/rtld.c
+++ b/elf/rtld.c
@@ -1167,7 +1167,8 @@ process_envvars (enum mode *modep, int *lazyp)
 
 	case 11:
 	  /* Path where the binary is found.  */
-	  if (memcmp (&envline[3], "ORIGIN_PATH", 11) == 0)
+	  if (!__libc_enable_secure
+	      && memcmp (&envline[3], "ORIGIN_PATH", 11) == 0)
 	    _dl_hwcap_mask = strtoul (&envline[15], NULL, 0);
 	  break;