使用ptrace在用户空间中编写程序主管 [英] Using ptrace to write a program supervisor in userspace

查看:133
本文介绍了使用ptrace在用户空间中编写程序主管的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我会寻找建议/资源来编写一个程序,可以拦截来自程序的系统调用,以监督其文件系统,网络等访问。

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.

这是在linux上,我更喜欢写C ++或

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

感谢。

推荐答案

这看起来像一个好的开始的地方。
http://www.linuxjournal.com/article/6100

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

这篇关于使用ptrace在用户空间中编写程序主管的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆