From e94001c0bb9ee7847a2ef7a3b436acd74acb9fd6 Mon Sep 17 00:00:00 2001 From: Chuck Lever Date: Sun, 17 Jan 2010 16:48:56 -0500 Subject: tcp_wrapper: Clean up logit() Eliminate these compiler warnings: tcpwrapper.c: In function logit tcpwrapper.c:225: warning: unused parameter procnum tcpwrapper.c:225: warning: unused parameter prognum Actually, @procnum is not used anywhere in our tcpwrapper.c, so let's just get rid of it. Since there is only one logit() call site in tcpwrapper.c, the macro wrapper just adds needless clutter. Let's get rid of that too. Finally, both mountd and statd now use xlog(), which adds an appropriate program name prefix to every message. Replace the open-coded syslog(2) call with an xlog() call in order to consistently identify the RPC service reporting the intrusion. Since logit() no longer references "deny_severity" and no nfs-utils caller sets either allow_severity or deny_severity, we remove them. Signed-off-by: Chuck Lever Signed-off-by: Steve Dickson --- support/include/tcpwrapper.h | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'support/include/tcpwrapper.h') diff --git a/support/include/tcpwrapper.h b/support/include/tcpwrapper.h index f1145bd..941394e 100644 --- a/support/include/tcpwrapper.h +++ b/support/include/tcpwrapper.h @@ -5,14 +5,8 @@ #include #include -extern int verboselog; - -extern int allow_severity; -extern int deny_severity; - extern int good_client(char *daemon, struct sockaddr_in *addr); extern int from_local(const struct sockaddr *sap); -extern int check_default(char *daemon, struct sockaddr_in *addr, - u_long proc, u_long prog); +extern int check_default(char *daemon, struct sockaddr_in *addr, u_long prog); #endif /* TCP_WRAPPER_H */ -- cgit