On Sun, Nov 4, 2012 at 10:24 PM, dhruvbird <dhru...@gmail.com> wrote:
> Hello,
>
> Has anyone linked the node.js executable against libwrap so that node.js
> based servers can make use of the hosts.allow and hosts.deny files? As I
> understand, libwrap transparently allows/denies TCP connections based on
> these parameters. Please let me know if my understanding is correct and if
> anyone has been able to get the two to work correctly together.
>
> Regards,
> -Dhruv.
Not transparently. libwrap is a collection of functions that, among
other things, lets you parse hosts.* entries. You still need to call
those functions though, it doesn't do any LD_PRELOAD magic or anything
(which probably wouldn't work anyway - node.js often makes system
calls directly instead of going through the libc wrappers.)