阅读背景:

使用LD_PRELOAD替换Linux系统调用时出现问题

来源:互联网 

I am trying to write a program that allows a binary to be run, substituting a certain file when requested with another. It is a library with simple replacements for the system call functions, that is used with LD_PRELOAD. The problem is that it catches opens for reading (the substitute file is read instead), but writes always go back to the actual, specified file. Are there any other "open" system calls I should know about?I am trying to write a program that allows a bi




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: