Shared library permissions in Debian-land and Red Hat-land

David Howells dhowells at redhat.com
Fri Mar 25 16:13:04 UTC 2011


Kevin Kofler <kevin.kofler at chello.at> wrote:

> I wonder if it would be possible to fix the kernel so that running a shared 
> library does not crash, but give a meaningful error message, and if Debian 
> would change their policy then.

As far as the kernel is concerned, these shared libraries are executable, can
be parsed and have an entry point that isn't 0.  Why shouldn't it try and
execute them?

I don't see anything particularly useful that would indicate that ld-linux and
libc can be run, but that libkeyutils, for example, can't.  Unlike
libkeyutils, libc has a PHDR program header (as does, say, /bin/ls), but
ld-linux _doesn't_, so you can't use that as a key.

David


More information about the devel mailing list