Subject: "tcpdchk" doesn't know that "sshd" uses tcp wrappers
To: None <tech-userlevel@netbsd.org>
From: Frederick Bruckman <fredb@immanent.net>
List: tech-userlevel
Date: 06/29/2001 11:57:14
"tcpdchk" reports (disingenuously) that "sshd" is not in
"/etc/inetd.conf", when of course, that's not the issue, as "sshd"
does use tcp wrappers.
It appears to be a trivial thing to give "sshd" the same treatment
as "sendmail". Does anyone object to my committing the following?
Frederick
Index: inetcf.c
===================================================================
RCS file: /cvsroot/basesrc/usr.sbin/tcpdchk/inetcf.c,v
retrieving revision 1.5
diff -c -r1.5 inetcf.c
*** inetcf.c 1999/08/27 16:07:23 1.5
--- inetcf.c 2001/06/29 16:55:47
***************
*** 40,46 ****
* The last entry should be a NULL.
*/
char *uses_libwrap[] = {
! "tcp", "/usr/sbin/sendmail", "sendmail",
(char *) NULL
};
--- 40,47 ----
* The last entry should be a NULL.
*/
char *uses_libwrap[] = {
! "tcp", "/usr/sbin/sendmail", "sendmail",
! "tcp", "/usr/sbin/sshd", "sshd",
(char *) NULL
};