Is there a way to create a sandbox environment inside C++ where you can either: - Run processes in - Load Dynamic Libraries in (Linux)
Dynamic Libraries are preferred because the easy communication between the main process and the sand-boxed processes.
A sand-boxed process should not be able to put memory on the heap or interact with the Kernel / Operating System. Instead the main process will provide an interface to do these things.
Is there any way to do this? I could create a script interpreter but that'd take away a lot of the speed. I'd like to keep the speed loss minimal.