Search code examples
c++linuxsystem-callsptrace

Using ptrace to write a program supervisor in userspace


I'll looking for advice/resources to write a program that can intercept system calls from a programm to supervise it's filesystem, network, etc access.

The aim of this is to write an online judge, so that untrusted code can be run safely on a server.

This is on linux, and I would prefer to write C++ or a scripting langauge (ruby, python, etc), and a library would be great!

Thanks.


Solution

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