2020-04-19 14:52:49 +02:00
|
|
|
Index: socat-1.7.3.4/filan.c
|
2020-02-04 14:12:37 +01:00
|
|
|
===================================================================
|
2020-04-19 14:52:49 +02:00
|
|
|
--- socat-1.7.3.4.orig/filan.c
|
|
|
|
+++ socat-1.7.3.4/filan.c
|
2020-02-04 14:12:37 +01:00
|
|
|
@@ -20,6 +20,10 @@
|
|
|
|
|
|
|
|
#include "filan.h"
|
|
|
|
|
|
|
|
+#ifdef WITH_LIBWRAP
|
|
|
|
+#include <tcpd.h>
|
|
|
|
+#endif
|
|
|
|
+
|
|
|
|
|
|
|
|
struct sockopt {
|
|
|
|
int so;
|
|
|
|
@@ -28,10 +32,6 @@ struct sockopt {
|
|
|
|
|
|
|
|
static int filan_streams_analyze(int fd, FILE *outfile);
|
|
|
|
|
|
|
|
-/* dirty workaround so we dont get an error on AIX when being linked with
|
|
|
|
- libwrap */
|
|
|
|
-int allow_severity, deny_severity;
|
|
|
|
-
|
|
|
|
/* global variables for configuring filan */
|
|
|
|
bool filan_followsymlinks;
|
|
|
|
bool filan_rawoutput;
|
2020-04-19 14:52:49 +02:00
|
|
|
Index: socat-1.7.3.4/procan.c
|
2020-02-04 14:12:37 +01:00
|
|
|
===================================================================
|
2020-04-19 14:52:49 +02:00
|
|
|
--- socat-1.7.3.4.orig/procan.c
|
|
|
|
+++ socat-1.7.3.4/procan.c
|
2020-02-04 14:12:37 +01:00
|
|
|
@@ -16,6 +16,9 @@
|
|
|
|
#include "filan.h"
|
|
|
|
|
|
|
|
#include <sys/resource.h>
|
|
|
|
+#ifdef WITH_LIBWRAP
|
|
|
|
+#include <tcpd.h>
|
|
|
|
+#endif
|
|
|
|
|
|
|
|
#include "procan.h"
|
|
|
|
|
2020-04-19 14:52:49 +02:00
|
|
|
Index: socat-1.7.3.4/xio-tcpwrap.c
|
2020-02-04 14:12:37 +01:00
|
|
|
===================================================================
|
2020-04-19 14:52:49 +02:00
|
|
|
--- socat-1.7.3.4.orig/xio-tcpwrap.c
|
|
|
|
+++ socat-1.7.3.4/xio-tcpwrap.c
|
2020-02-04 14:12:37 +01:00
|
|
|
@@ -13,6 +13,7 @@
|
|
|
|
#include "xio-tcpwrap.h"
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
#if (WITH_TCP || WITH_UDP) && WITH_LIBWRAP
|
|
|
|
|
|
|
|
const struct optdesc opt_tcpwrappers = { "tcpwrappers", "tcpwrap", OPT_TCPWRAPPERS, GROUP_RANGE, PH_ACCEPT, TYPE_STRING_NULL, OFUNC_SPEC };
|