4 ms·
How does it know what is needed to run? What if its a program that controls another program via CLI?
by hda111 5y ago
How does it know what is needed to run? What if its a program that controls another program via CLI?
- toast0 5y agoOne needs to assemble the jail. There may be tools for this, although I haven't used them. It's real easy if you can build a static executable, if it's a normal dynamic executable, you can use ldd (or something) to get all the libraries and just remember to pull in ld.so (the runtime linker). If it's dynamically loading modules (like Apache HTTP and PHP often are configured) or running other executables like you asked, that's harder to automate.