News for hackers. Stuff that matters.
Re:Pledge() – a new mitigation mechanism in OpenBSD by viraptor on Tuesday November 10, 2015 @12:15AM (#10537737)
You can open /dev/null at init time and then lock down open(). Sure - it's not always possible, but it's a solution.
Re:Pledge() – a new mitigation mechanism in OpenBSD by kentonv on Tuesday November 10, 2015 @12:18AM (#10537747)
That's definitely a way better strategy than what I said -- when your code is well-designed-enough for it to work.
Re:Pledge() – a new mitigation mechanism in OpenBSD by justincormack on Tuesday November 10, 2015 @04:24AM (#10538335)
That is the Capsicum model, disable open when you go into secure mode. Note you can allow passing of file descriptors and an external program can open new files for you if you allow this. Many single task programs do not need to open files after initialisation.