Loïc Minier wrote:
Hi,
This is a followup for Debian bug <http://bugs.debian.org/384060>.
On Mon, Aug 21, 2006, Jamin W. Collins wrote:
The attached patch adds support for honoring /etc/hosts.(allow|deny) to
vino builds.
I wanted to update the vino package to link with libwrap, but I didn't
understand the config.h.in part of your patch: which software is using
the #define? I couldn't fine any such use in vino, nor in the libwrap
header files.
The existing source includes the logic and routines to support libwrap
already, specifically in server/libvncserver/sockets.c:
#ifdef USE_LIBWRAP
#include <syslog.h>
#include <tcpd.h>
int allow_severity=LOG_INFO;
int deny_severity=LOG_WARNING;
#endif
...
#ifdef USE_LIBWRAP
if(!hosts_ctl("vnc",STRING_UNKNOWN,inet_ntoa(addr.sin_addr),
STRING_UNKNOWN)) {
rfbLog("Rejected connection from client %s\n",
inet_ntoa(addr.sin_addr));
close(sock);
return;
}
#endif
However, I could not find a means within the existing package to trigger
these blocks without manually including the define in some way. Once
USE_LIBWRAP is defined, the support is included in the resultant package.
--
Jamin W. Collins
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]