Shared library permissions

Ken Moffat ken at linuxfromscratch.org
Mon Aug 22 13:06:48 PDT 2005


On Mon, 22 Aug 2005, Matthew Burgess wrote:

> Hi folks.
>
> Does anyone know why shared libraries need the execute bit set on them?  My 
> most recent build (gcc4-based) has most[1] *.so files installed with 755 
> permissions.  As it's so consistent, I'm assuming there is a reason for them 
> to be executable.  Thanks to Tarek Ghaleb and Andrew Benton for highlighting 
> the issue [2].

> [1] Exceptions being: /lib/libproc-3.2.5.so (555), /usr/lib/libc.so (644), 
> /usr/lib/libpthread.so (644), /usr/lib/preloadable_libintl.so (644), and 
> Perl's modules (555)
>

  /usr/lib/lib{c,pthread}.so aren't libraries, they are ld scripts.

Ken
-- 
  das eine Mal als Tragödie, das andere Mal als Farce


More information about the lfs-dev mailing list