Skip to content

Commit

Permalink
Add support for SELinux environments.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulrich Drepper committed Sep 16, 2004
1 parent edbaf5e commit 40a8d82
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion elf/ldd.bash.in
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 40a8d82

Please sign in to comment.