On Fri, Sep 28, 2012 at 10:32 AM, Felipe Gasper <[email protected]> wrote: > This may be a simple scenario, but I’m not finding how to do this in node: > > *) User A logs in as “bob”. > Server drops privs to do “bob”’s bidding as “bob”. > > > *) User B logs in as “bob”. > Server drops privs to do “jane”’s bidding as “jane”. > > > Since Node doesn’t fork for an incoming connection, is it still possible > to have two concurrent execution threads that run with different privileges?
Not directly. You can spin up a child process that drops privileges and send either the socket or the traffic from the master to the child. Sending over sockets (handles) will require reading the source - the functionality is there but it's undocumented. -- 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
