5 ms·
Neat. I've done something similar with an LD_PRELOAD library for a dameon's integration test suite. This might be a cleaner way to go about it.
by monocasa 5y ago
Neat. I've done something similar with an LD_PRELOAD library for a dameon's integration test suite. This might be a cleaner way to go about it.
- convolvatron 5y agoLD_PRELOAD covers the entire kernel API, so you could do the same thing for networking and .. threads.... and memory. _that_ would be a remarkably effective chaos monkey.
- khc 5y agonote that LD_PRELOAD doesn't work for things written in Go because they have their make their own syscalls instead of going through glibc
- rwmj 5y agoSeccomp bpf would work as an alternative in this case: https://www.kernel.org/doc/html/latest/userspace-api/seccomp_filter.html https://www.kernel.org/doc/html/latest/userspace-api/seccomp...