4 ms·
OpenBSD pledge(2) and unveil(2) are relatively easy to create high level language bindings for, and users have already contributed several in the community, lik
by notaplumber 7y ago
OpenBSD pledge(2) and unveil(2) are relatively easy to create high level language bindings for, and users have already contributed several in the community, like this latest one for Ada. In base, OpenBSD only supports C/C++, however a Perl interface is also included.
https://man.openbsd.org/man3p/OpenBSD::Pledge.3p https://man.openbsd.org/man3p/OpenBSD::Pledge.3p
https://man.openbsd.org/man3p/OpenBSD::Unveil.3p https://man.openbsd.org/man3p/OpenBSD::Unveil.3p
A few bindings are also maintained in ports, for example GHC/Haskell (unix package) & Node.js (node-pledge) include them out of the box.
For an unofficial list of highlevel language bindings: https://gist.github.com/ligurio/f6114bd1df371047dd80ea9b8a55c104 https://gist.github.com/ligurio/f6114bd1df371047dd80ea9b8a55...
- verisimilitudes 7y agoYes; this was good to ''cut my teeth on'', as it's a rather simple package and, being so self-contained, I'm actually entirely pleased with its specification. >In base, OpenBSD only supports C/C++, however a Perl interface is also included. I'm soon going to drop by the OpenBSD mailing list and see if they're interested in including this in their prepackaged GNAT. It won't harm to ask. Related to this, I intend to write a binding for Common Lisp, at some point, although that will be far more arduous, all things considered.