2 ms·
How do they manage to run untrusted code on the server?
by Kiro 4y ago
How do they manage to run untrusted code on the server?
- GuB-42 4y agoI don't know how it is done here but there are plenty of ways: VMs, sandboxes, etc... There is no problem running untrusted code as long as the I/O and interrupts are protected, something that is a standard feature of all the CPUs and OSes that the server may run on... Unless you find a bug to exploit.
- rashkov 4y agoWhich system calls would enable this protection?
- GeneralMayhem 4y agoIt's a custom interpreted scripting language. As long as the interpreter doesn't have any hooks for disk or network I/O, pointer manipulation, etc., it's pretty safe. You could go further by sandboxing in a VM or suchlike if you're concerned about incidental arbitrary-code exploits, but in reality it's not any more dangerous than running any other game server.