On 03/24/2011 03:28 AM, Ville Skyttä wrote:
On 03/24/2011 06:52 AM, John Reiser wrote:
>> they say on Debian and Ubuntu,
>> all shared libs have 0644 permissions.
>
> What they say is incorrect.
>
> I have Ubuntu 10.10 i686:
> -rwxr-xr-x 1 root root 1421892 2011-01-21 15:08 /lib/libc-2.12.1.so
[...snip more libc examples...]
libc is probably a special case because it actually does useful things
when executed. The vast majority of shared libs are not executable on a
Debian 6.0 box I just had a look at.
FWIW, on my F14 all the .so libs in /lib are executable, and all but
three segfault (and trigger abrt) when executed. Besides the already
mentioned libc-2.13.so and ld-2.13.so, only libpthread-2.13.so
runs successfully to print a legal notice followed by 'Forced unwind
support included."