node-selinux is an libselinux binding for node.js.
* [node.js](http://nodejs.org/) -- tested with v0.10.3
* libselinux
To build node-selinux:
node-gyp configure build
Supported methods * getcon * getpeercon * getfilecon * getcon_raw * setexeccon * setsockcreatecon * setfscreatecon
var sys = require('sys'); var selinux = require('selinux');
var s = new selinux.SELinux(); var con = s.getcon(); sys.puts(con);