I am creating a web app similar to codepad and for each run-action my app copies a directory (
/tmp/voidptr/[random-id]/chroot-root. This chroot directory has a user that compiles and runs the code entered by the web app user. The problem is that I don't want the user to shut down the machine or use sockets for example.
Do I need to write a supervisor or can I simply set these permissions per user?