4 ms·
LD_PRELOAD in combination with LD_LIBRARY_PATH is meant to be used by a programmer debugging and testing his or her own shared object library, not for using sof
by Annatar 8y ago
LD_PRELOAD in combination with LD_LIBRARY_PATH is meant to be used by a programmer debugging and testing his or her own shared object library, not for using software in production.
- fpoling 8y agoBy "similar hacks" I meant something like embedding a custom loader into a fully static binary that runs the interpreter and loads its libraries from the embedded filesystem while patching libc calls.
- TheDong 8y agoWhy would you bother with such difficult and fragile hacks when you could instead simply have the kernel itself remap those file-related calls with a mount namespace or chroot?
- megous 8y agoWhy would you invlove the kernel at all, since you have access to Python's code itself, and can just make your own version of python, that will source files from wherever you want. And your package will be protable to Windows, too.