Skip to content

OpenBSD unveil(2) bindings for Node.js with prebuilds

License

Notifications You must be signed in to change notification settings

emilbayes/openbsd-unveil

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

openbsd-unveil

OpenBSD unveil(2) bindings for Node.js with prebuilds

Usage

const unveil = require('openbsd-unveil')
const fs = require('fs')

unveil(__dirname, 'rwc') // can read, write and create files from here down
const fd = fs.openSync('../test.txt', 'a+', 0o555)

unveil() // Disable unveil

API

unveil([path], [permissions])

Unveil path with permissions, both being string or null to disable unveil.

Please refer to the unveil(2) docs

Install

npm install openbsd-unveil

License

ISC

About

OpenBSD unveil(2) bindings for Node.js with prebuilds

Resources

License

Stars

Watchers

Forks

Packages

No packages published