Hi, as per http://stackoverflow.com/questions/3642370/using-ptrace-to-write-a-program-supervisor-in-userspace, I'm attempting to create the program supervisor component of an online judge.
What system calls would I need to block totally, always allow or check the attributes of to:
- Prevent forking or runing other commands
- Restrict to standard 'safe' C and C++ libs
- Prevent net access
- Restrict access to all but 2 files 'in.txt' and 'out.txt'
- Prevent access to any system functions or details.
- Prevent the application from escaping its supervisor
- Prevent anything nasty.
Thanks any help/advice/links much appreciated.