[Nut-upsdev] 2.8.1 build buglet: sockdebug.c

Greg Troxel gdt at lexort.com
Thu Nov 9 15:30:03 GMT 2023


Jim Klimov <jimklimov+nut at gmail.com> writes:

> By the way, on the NUT CI farm the libwrap is present on some (though not
> all) systems - covering linux, freebsd, openindiana... and neither
> complained about `sockdebug` :\
>
> What version do you have? Maybe it is some alternate implementation?

Looks like 7.4, as amended in NetBSD over the years.   Looks like the
original.  tcpd.h has

 /*
  * @(#) tcpd.h 1.5 96/03/19 16:22:24
  * 
  * Author: Wietse Venema, Eindhoven University of Technology, The Netherlands.
  */


$ nm -g /usr/lib/libwrap.so|egrep _severity
                 U allow_severity
                 U deny_severity

The man page says

       The allow_severity and deny_severity variables determine how accepted
       and rejected requests may be logged.  They must be provided by the
       caller and may be modified by rules in the access control tables.

and indeed see lines 68/89 of server/upsd.c which does exactly that.





More information about the Nut-upsdev mailing list