why do have shared libs 755 perms?

Florian Weimer fweimer at redhat.com
Mon May 13 11:43:18 UTC 2013


On 05/11/2013 10:38 PM, John Reiser wrote:
> Some are; libc.so.6 is an important case which demonstrates one use.
> Generally, a shared library is just an ET_DYN file, and so can
> have a non-zero ElfXX_Ehdr.e_entry.  It is up to the author/maintainer
> to decide that to do with the facility that ELF provides.
> Most of the shared libraries in /lib{,64} *do* have a non-zero .e_entry.
> (" readelf -h *.so  |  grep 'Entry point' ")

It seems all PIE executables are actually ET_DYN objects with an entry 
point.

-- 
Florian Weimer / Red Hat Product Security Team


More information about the devel mailing list