walters / rpms / nfs-utils

Forked from rpms/nfs-utils 6 years ago
Clone
eaa6c2e
commit 06da4cfd46942acaaa5bd2e7933fd290701d186d
eaa6c2e
Author: Steve Dickson <steved@redhat.com>
eaa6c2e
Date:   Sun Mar 8 10:10:25 2009 -0400
eaa6c2e
eaa6c2e
    Added back the some logging variables which are no
eaa6c2e
    longer used but, unfortunately, they are extern-ed by
eaa6c2e
    public headers files which are not under the control
eaa6c2e
    of this package.
eaa6c2e
    
eaa6c2e
    Spotted-by: Juergen Daubert <jue@jue.li>
eaa6c2e
    Signed-off-by: Steve Dickson <steved@redhat.com>
eaa6c2e
eaa6c2e
diff --git a/support/misc/tcpwrapper.c b/support/misc/tcpwrapper.c
eaa6c2e
index a361496..1da6020 100644
eaa6c2e
--- a/support/misc/tcpwrapper.c
eaa6c2e
+++ b/support/misc/tcpwrapper.c
eaa6c2e
@@ -60,8 +60,16 @@ static void logit(int severity, struct sockaddr_in *addr,
eaa6c2e
 		  u_long procnum, u_long prognum, char *text);
eaa6c2e
 static int check_files(void);
eaa6c2e
 
eaa6c2e
+/*
eaa6c2e
+ * These need to exist since they are externed 
eaa6c2e
+ * in public header files.
eaa6c2e
+ */
eaa6c2e
+int     verboselog = 0;
eaa6c2e
+int     allow_severity = LOG_INFO;
eaa6c2e
+int     deny_severity = LOG_WARNING;
eaa6c2e
+
eaa6c2e
 #define log_bad_host(addr, proc, prog) \
eaa6c2e
-  logit(LOG_WARNING, addr, proc, prog, "request from unauthorized host")
eaa6c2e
+  logit(deny_severity, addr, proc, prog, "request from unauthorized host")
eaa6c2e
 
eaa6c2e
 #define ALLOW 1
eaa6c2e
 #define DENY 0