2 * Part of Very Secure FTPd
7 * Routines to encapsulate the usage of tcp_wrappers.
11 #include "builddefs.h"
14 #ifdef VSF_BUILD_TCPWRAPPERS
18 #ifdef VSF_BUILD_TCPWRAPPERS
20 #include <sys/syslog.h>
22 int deny_severity
= LOG_WARNING
;
23 int allow_severity
= LOG_INFO
;
26 vsf_tcp_wrapper_ok(int remote_fd
)
28 struct request_info req
;
29 request_init(&req
, RQ_DAEMON
, "vsftpd", RQ_FILE
, remote_fd
, 0);
31 if (!hosts_access(&req
))
38 #else /* VSF_BUILD_TCPWRAPPERS */
41 vsf_tcp_wrapper_ok(int remote_fd
)
44 die("tcp_wrappers is set to YES but no tcp wrapper support compiled in");
48 #endif /* VSF_BUILD_TCPWRAPPERS */