]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
ldd: never run file directly
authorAndreas Schwab <schwab@suse.de>
Wed, 16 Aug 2017 13:59:55 +0000 (15:59 +0200)
committerTulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
Fri, 6 Apr 2018 18:55:17 +0000 (15:55 -0300)
(cherry picked from commit eedca9772e99c72ab4c3c34e43cc764250aa3e3c)

ChangeLog
elf/ldd.bash.in

index c5389fa56c0930c69e84d821489e811662e2de16..643aeb94191ee77520445f29645a09c9d328fc34 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2017-08-16  Andreas Schwab  <schwab@suse.de>
+
+       * elf/ldd.bash.in: Never run file directly.
+
 2016-10-14  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
 
        * sysdeps/powerpc/bits/hwcap.h: Add PPC_FEATURE2_HTM_NOSC.
index 7fb6c157a02a9d087120c9aa6352563566da0c3c..9cb1636f408782e8e3b3e9418b92623a580db53c 100644 (file)
@@ -164,18 +164,6 @@ warning: you do not have execution permission for" "\`$file'" >&2
       fi
     done
     case $ret in
-    0)
-      # If the program exits with exit code 5, it means the process has been
-      # invoked with __libc_enable_secure.  Fall back to running it through
-      # the dynamic linker.
-      try_trace "$file"
-      rc=$?
-      if [ $rc = 5 ]; then
-       try_trace "$RTLD" "$file"
-       rc=$?
-      fi
-      [ $rc = 0 ] || result=1
-      ;;
     1)
       # This can be a non-ELF binary or no binary at all.
       nonelf "$file" || {
@@ -183,7 +171,7 @@ warning: you do not have execution permission for" "\`$file'" >&2
        result=1
       }
       ;;
-    2)
+    0|2)
       try_trace "$RTLD" "$file" || result=1
       ;;
     *)