Sc2LadderServer
Sc2LadderServer copied to clipboard
Access limitations for bots
The bots should only have access to the working directory (and sub-directories). It is especially important that they can not interrupt the other bots processes.
Up until now I've been reliant on user permissions and running as an untrusted user. I'm not sure if theres a good way of doing this programatically, but I might take a look into this when I get time
Basically you would need to implement some form of Sandbox. I think this should be offloaded to the underlying host system. (chrooted env/user accounts)
Unfortunately, it is easy to jump out of chroot. Probably we need a set of restricted users or groups.
This is true, (chroot is not a security feature) but at least another step to take for an attacker. Restricted Users should be used in any case. Ill eval some possibilities. (firejail,selinux,containers)
I can add 'run under userX' to UnixTools however I need to know the userX's user id and group id.