2 ms·pledge(2) from OpenBSD pretty much solves this problem.by smabie 6y agopledge(2) from OpenBSD pretty much solves this problem.