Safe Execution in Ruby -
i trying make website people can run there uploaded code. spoj / acm. how make sure code doeesn't damage system ( restricting access sockets , system calls )
i have around many solution on net, suggested chroot don't understand. require config, can done config etc.
note not asking particular language, running in executable.
my development setup mac , linux hosting, nice if solution can run on both. not requirement.
i suggest using virtual machine had bare minimum of system, allow ruby run , nothing else. use linux system can lock down execution of programs greater degree, extended permissions.
finally after each program has been run, reset virtual machine checkpoint pristine setup, wiping accidents may have occurred.
Comments
Post a Comment