aboutsummaryrefslogtreecommitdiff
path: root/elf
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2004-09-16 21:59:12 +0000
committerUlrich Drepper <drepper@redhat.com>2004-09-16 21:59:12 +0000
commit40a8d825af282293e79c9d28b5035501fdd6acd4 (patch)
tree44fa37e19199b8142c830555c3aa4a1e9e898a1b /elf
parentedbaf5e576596257f8a27dccbfeb7c1c5d8d92f0 (diff)
downloadglibc-40a8d825af282293e79c9d28b5035501fdd6acd4.tar
glibc-40a8d825af282293e79c9d28b5035501fdd6acd4.tar.gz
glibc-40a8d825af282293e79c9d28b5035501fdd6acd4.tar.bz2
glibc-40a8d825af282293e79c9d28b5035501fdd6acd4.zip
Add support for SELinux environments.
Diffstat (limited to 'elf')
-rw-r--r--elf/ldd.bash.in5
1 files changed, 4 insertions, 1 deletions
diff --git a/elf/ldd.bash.in b/elf/ldd.bash.in
index aeceae8592..8867211109 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