2 ms·
By "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 embedd
by fpoling 8y ago
By "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.