Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
monocasa
· 5y ago · 0 comments
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.
Comments
[–]
convolvatron
5y ago
LD_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 ago
note 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 ago
Seccomp bpf would work as an alternative in this case:
https://www.kernel.org/doc/html/latest/userspace-api/seccomp...