2 * Part of Very Secure FTPd
7 * Routines to encapsulate the usage of tcp_wrappers.
11 #include "builddefs.h"
15 #ifdef VSF_BUILD_TCPWRAPPERS
19 #ifdef VSF_BUILD_TCPWRAPPERS
21 #include <sys/syslog.h>
23 int deny_severity
= LOG_WARNING
;
24 int allow_severity
= LOG_INFO
;
27 vsf_tcp_wrapper_ok(int remote_fd
)
29 struct request_info req
;
30 vsf_sysutil_openlog(0);
31 request_init(&req
, RQ_DAEMON
, "vsftpd", RQ_FILE
, remote_fd
, 0);
33 if (!hosts_access(&req
))
35 vsf_sysutil_closelog();
38 vsf_sysutil_closelog();
42 #else /* VSF_BUILD_TCPWRAPPERS */
45 vsf_tcp_wrapper_ok(int remote_fd
)
48 die("tcp_wrappers is set to YES but no tcp wrapper support compiled in");
52 #endif /* VSF_BUILD_TCPWRAPPERS */