A per-user or per-application ld.so.cache?

Florian Weimer fweimer@redhat.com
Mon Feb 8 20:25:00 GMT 2016


On 02/08/2016 09:19 PM, Carlos O'Donell wrote:

> Why would a long-lived process that uses dlopen fail to benefit from an
> on-disk cache?

It's not worth the complexity.  (On top of the SUID issue already
mentioned, there is also the question of cache invalidation.)  With
long-living processes, you could just read in the a designated list of
directories at startup and use that to seed an ephemeral cache.  Hence
my question about the directory layout.

> Would you mind expanding on your concern that the solution would not work?

It would work, it's just more difficult to use.

Florian



More information about the Libc-alpha mailing list