Skip to content

Latest commit

 

History

History
34 lines (23 loc) · 543 Bytes

README.md

File metadata and controls

34 lines (23 loc) · 543 Bytes

Description

node-selinux is an libselinux binding for node.js.

Requirements

 * [node.js](http://nodejs.org/) -- tested with v0.10.3
 * libselinux

Build

To build node-selinux:

node-gyp configure build

API

Supported methods * getcon * getpeercon * getfilecon * getcon_raw * setexeccon * setsockcreatecon * setfscreatecon

Example

var sys = require('sys'); var selinux = require('selinux');

var s = new selinux.SELinux(); var con = s.getcon(); sys.puts(con);