OpenBSD pledge(2) bindings for Node.js with prebuilds
const pledge = require('openbsd-pledge')
const fs = require('fs')
pledge('stdio')
const fd = fs.openSync('test.txt', 'r', 0o555) // SIGABRT here
promise
and execpromise
can be either space separated stringe of promises or
null
. promise
applies to the current process while execpromise
applies to
child processes.
Please refer to the pledge(2)
docs
npm install openbsd-pledge