about summary refs log tree commit diff stats
path: root/src/bindings/pledge.nim
Commit message (Collapse)AuthorAgeFilesLines
* sandbox: add OpenBSD pledge/unveil supportbptato2024-04-031-0/+6
pledge is a bit more fine-grained than Capsicum's capability mode, so the buffer & http ("network") sandboxes are now split up into two parts. I applied the same hack as in FreeBSD for overriding the buffer selector kqueue, because a) I didn't want to request sysctl promise b) I'm not sure if it would even work and c) if it breaks on OpenBSD, then it's broken on FreeBSD too, so there's a greater chance of discovering the bug.