开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜