sinsong / interposelibc Goto Github PK
View Code? Open in Web Editor NEWinterpose libc
interpose libc
Build $ make Usage use ld-linux.so environment variable LD_PRELOAD $ LD_PRELOAD=interposelibc.so <executable> conf - 配置文件相关函数 include - include dir interpose - 替换的函数 obj - 目标输出目录 test - 测试程序 misc unistd.h - cp /usr/include/unistd.h . - 拷一份看看而已 include/unistd-ref.h - 清理过的 unistd.h
原因:一开始 obj 目录不存在所以 OUTDIR=$(realpath obj/) 返回空或者可能是 / 导致指向根目录
建议:应该添加 obj 目录检测/创建,或者加入构建目标
缓解措施:编译前手动 mkdir obj
输出(部分):
make OUTDIR="" CFLAGS="-I/home/xxx/interposelibc/include -fPIC" -C interpose
cc -I/home/xxx/interposelibc/include -fPIC -c execve.c -o /execve.o
error: can't create /execve.o: permission denied
make[1]: *** [Makefile:8 : execve.o] error 1
make: *** [Makefile:9 : interpose] error2
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.