I'm looking for a shared library that is to be loaded using LD_PRELOAD that would modify the view of the filesystem to the client program.

Ideally, I'd like to choose the filesystem root (or use / as root) and to overlay the filesystem by renaming filenames.

For example, I might want to tell my program to look for /usr/lib/* in /usr/lib32/* instead.

Do you know of such a program ?

Thanks.

link|improve this question

50% accept rate
feedback

1 Answer

There's AVFS which is a little bit like this, but I would certainly not recommend the technique for anything security conscious, since you would have to patch all present and future library things that frob files...

An alternate approach might be to make chroot / bind-mount farm. That also has the advantage that you can mount --bind things read-only, which is nice.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.