开发者

Why not search the directory an ELF binary resides for dynamic libraries on which it depends?

开发者 https://www.devze.com 2023-03-23 13:21 出处:网络
I know that for security sake, \".\" is not included in $PATH, in case that root run other user\'s \"ls\" instead of the /bin/ls, which windows do.

I know that for security sake, "." is not included in $PATH, in case that root run other user's "ls" instead of the /bin/ls, which windows do.

But I don't understand why linux not search the directory an ELF binary resides for dynamic libraries on which it depends. If Linux do, then "--prefix" is not necessary when running configure, and elf binaries can be made portable.

开发者_如何学JAVA

The security problem won't trouble, if Linux searches $LD_LIBRARY_PATH first, then the directory binary resides.

0

精彩评论

暂无评论...
验证码 换一张
取 消