On Sat, Jul 6, 2013 at 10:49 AM, richard -rw- weinberger
<[email protected]> wrote:
> Hi!
>
> Is node providing a mechanism to modify the current capability set on Linux?
> I'd like to drop some capabilities and limit the capability bounding set.

You can drop root privileges with process.setuid(), process.setgid()
and process.initgroups(), which pretty much map 1-to-1 to the POSIX
functions of the same name.

There is nothing in node.js core that lets you manipulate Linux
capabilities like capset() or prctl(PR_CAPBSET_DROP) do - nor will
there be, it's too platform-specific - but it's trivial to write a
small C++ add-on for it.  There may be one (or several) already
available through npm.

-- 
-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to