News for hackers. Stuff that matters.
Re:Pledge() – a new mitigation mechanism in OpenBSD by caf on Tuesday November 10, 2015 @12:24AM (#10537760)
You don't even have to copy the filenames around and mess with changing page permissions - simply doing:

  static const char * const dev_null = "/dev/null";
and then whitelisting the pointer dev_null is sufficient, because string literals are stored in the text section which is mapped read-only.
Re:Pledge() – a new mitigation mechanism in OpenBSD by amluto on Tuesday November 10, 2015 @01:51AM (#10537949)
That only works if you've locked down mprotect, mmap, and munmap.
Re:Pledge() – a new mitigation mechanism in OpenBSD by caf on Tuesday November 10, 2015 @01:57AM (#10537960)
Yes, the parent covered that.