nsca libwrap support

Ethan Galstad nagios at nagios.org
Tue Oct 28 07:07:07 CET 2003


Thanks - I'll get this patched tonight.

On 24 Oct 2003 at 8:59, Mark Ferlatte wrote:

> Attached is a patch for nsca.c (as of CVS this morning), that fixed
> the recently added TCP wrappers support.  Tested in both --single and
> --daemon modes.
> 
> I moved the libwrap check up to just after the accept() and prior to
> the fork() in MULTI_PROCESS mode so that rejected attempts don't cause
> process creation (trivial DoS attack).  I also fixed the reject logic;
> the reject() function calls exit(), which broke single mode.
> 
> Let me know if the patch requires cleanup.
> 
> M
> 



Ethan Galstad,
Nagios Developer
---
Email: nagios at nagios.org
Website: http://www.nagios.org



-------------------------------------------------------
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community?  Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/




More information about the Developers mailing list