| 1 |
diff -ruN tcp_wrappers_7.6.orig/tcpdchk.c tcp_wrappers_7.6/tcpdchk.c |
| 2 |
--- tcp_wrappers_7.6.orig/tcpdchk.c 2003-08-21 02:50:37.000000000 +0200 |
| 3 |
+++ tcp_wrappers_7.6/tcpdchk.c 2003-08-21 02:50:33.000000000 +0200 |
| 4 |
@@ -53,6 +53,24 @@ |
| 5 |
#include "inetcf.h" |
| 6 |
#include "scaffold.h" |
| 7 |
|
| 8 |
+/* list of programs which are known to be linked with libwrap in debian */ |
| 9 |
+static const char *const libwrap_programs[] = { |
| 10 |
+ "portmap", "mountd", "statd", "ugidd", |
| 11 |
+ "redir", "rlinetd", |
| 12 |
+ "sshd", |
| 13 |
+ "atftpd", |
| 14 |
+ "diald", |
| 15 |
+ "esound", |
| 16 |
+ "gdm", "gnome-session", |
| 17 |
+ "icecast", "icecast_admin", "icecast_client", "icecast_source", |
| 18 |
+ "mysqld", |
| 19 |
+ "ntop", |
| 20 |
+ "pptpd", |
| 21 |
+ "rquotad", |
| 22 |
+ "sendmail", "smail", |
| 23 |
+ NULL |
| 24 |
+}; |
| 25 |
+ |
| 26 |
/* |
| 27 |
* Stolen from hosts_access.c... |
| 28 |
*/ |
| 29 |
@@ -147,8 +165,8 @@ |
| 30 |
/* |
| 31 |
* These are not run from inetd but may have built-in access control. |
| 32 |
*/ |
| 33 |
- inet_set("portmap", WR_NOT); |
| 34 |
- inet_set("rpcbind", WR_NOT); |
| 35 |
+ for (c = 0; libwrap_programs[c]; c++) |
| 36 |
+ inet_set(libwrap_programs[c], WR_YES); |
| 37 |
|
| 38 |
/* |
| 39 |
* Check accessibility of access control files. |