C++ – Use ptrace to write program supervisors in user space

Use ptrace to write program supervisors in user space… here is a solution to the problem.

Use ptrace to write program supervisors in user space

I will look for suggestions/resources to write a program that intercepts system calls from a program to oversee its filesystem, network, etc. access.

The purpose of this is to write an online judgment so that untrusted code can run safely on the server.

This is on Linux, I prefer to write C++ or scripting languages (ruby, python, etc.), a library would be great!

Thank you.

Solution

This seems like a good place to start.
http://www.linuxjournal.com/article/6100

Related Problems and Solutions