From: Ulrich Drepper Date: Thu, 16 Sep 2004 21:59:12 +0000 (+0000) Subject: Add support for SELinux environments. X-Git-Tag: cvs/fedora-base~38 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=40a8d825af282293e79c9d28b5035501fdd6acd4;p=platform%2Fupstream%2Fglibc.git Add support for SELinux environments. --- diff --git a/elf/ldd.bash.in b/elf/ldd.bash.in index aeceae8..8867211 100644 --- a/elf/ldd.bash.in +++ b/elf/ldd.bash.in @@ -155,7 +155,10 @@ warning: you do not have execution permission for" "\`$file'" >&2 } ;; 2) - eval $add_env \${RTLD} '"$file"' || result=1 + # The following use of cat is needed to make ldd work in SELinux + # environments where the executed program might not have permissions + # to write to the console/tty. + eval $add_env \${RTLD} '"$file"' | cat || result=1 ;; *) echo 'ldd:' ${RTLD} $"exited with unknown exit code" "($ret)" >&2