aboutsummaryrefslogtreecommitdiff
path: root/security/bsmtrace
diff options
context:
space:
mode:
authorKyle Evans <kevans@FreeBSD.org>2020-08-24 00:28:44 +0000
committerKyle Evans <kevans@FreeBSD.org>2020-08-24 00:28:44 +0000
commitc6372e46360e9723d252a32e93ff3b3a2b174c11 (patch)
treedd204662c9f48d57be8eff79edeb306fff258042 /security/bsmtrace
parent39046188c575042e54a648212b11911eea0bac29 (diff)
downloadports-c6372e46360e9723d252a32e93ff3b3a2b174c11.tar.gz
ports-c6372e46360e9723d252a32e93ff3b3a2b174c11.zip
Notes
Diffstat (limited to 'security/bsmtrace')
-rw-r--r--security/bsmtrace/files/patch-bsmtrace.c8
-rw-r--r--security/bsmtrace/files/patch-bsmtrace.h9
-rw-r--r--security/bsmtrace/files/patch-conf.c10
-rw-r--r--security/bsmtrace/files/patch-log.c11
-rw-r--r--security/bsmtrace/files/patch-log.h11
5 files changed, 48 insertions, 1 deletions
diff --git a/security/bsmtrace/files/patch-bsmtrace.c b/security/bsmtrace/files/patch-bsmtrace.c
index 3b6cc52d592c..0d7d49310197 100644
--- a/security/bsmtrace/files/patch-bsmtrace.c
+++ b/security/bsmtrace/files/patch-bsmtrace.c
@@ -1,5 +1,13 @@
--- bsmtrace.c.orig 2014-01-14 22:51:19 UTC
+++ bsmtrace.c
+@@ -30,6 +30,7 @@
+ #include "includes.h"
+
+ static int daemonized; /* daemonized or not? */
++int audit_pipe_fd;
+
+ /*
+ * If we are going to be daemonized, write out a pid file to
@@ -92,7 +92,7 @@ bsmtrace_exit(int x)
}
diff --git a/security/bsmtrace/files/patch-bsmtrace.h b/security/bsmtrace/files/patch-bsmtrace.h
index fc9f41288fde..2a4cdf35600a 100644
--- a/security/bsmtrace/files/patch-bsmtrace.h
+++ b/security/bsmtrace/files/patch-bsmtrace.h
@@ -1,6 +1,13 @@
--- bsmtrace.h.orig 2014-02-05 02:34:38 UTC
+++ bsmtrace.h
-@@ -43,6 +43,6 @@ int audit_pipe_fd; /* XXX not happy abou
+@@ -38,11 +38,11 @@ int audit_pipe_fd; /* XXX not happy abou
+ char *pflag;
+ };
+
+-struct g_conf opts;
+-int audit_pipe_fd; /* XXX not happy about this global */
++extern struct g_conf opts;
++extern int audit_pipe_fd; /* XXX not happy about this global */
void bsmtrace_error(int, char *, ...);
void bsmtrace_exit(int);
diff --git a/security/bsmtrace/files/patch-conf.c b/security/bsmtrace/files/patch-conf.c
new file mode 100644
index 000000000000..42706b71e73d
--- /dev/null
+++ b/security/bsmtrace/files/patch-conf.c
@@ -0,0 +1,10 @@
+--- conf.c.orig 2014-01-14 22:51:19 UTC
++++ conf.c
+@@ -54,6 +54,7 @@ extern int yyparse(void);
+ bsm_set_head_t bsm_set_head;
+ int lineno = 1;
+ char *conffile;
++struct g_conf opts;
+
+ /*
+ * Return BSM set named str, or NULL if the set was not found in the BSM set
diff --git a/security/bsmtrace/files/patch-log.c b/security/bsmtrace/files/patch-log.c
new file mode 100644
index 000000000000..aaf081508dec
--- /dev/null
+++ b/security/bsmtrace/files/patch-log.c
@@ -0,0 +1,11 @@
+--- log.c.orig 2020-08-23 21:49:15 UTC
++++ log.c
+@@ -31,6 +31,8 @@
+ #include "includes.h"
+ #undef SYSLOG_NAMES
+
++struct logchannel_head log_head;
++
+ int
+ log_bsm_syslog(struct logchannel *lc, struct bsm_sequence *bs,
+ struct bsm_record_data *br);
diff --git a/security/bsmtrace/files/patch-log.h b/security/bsmtrace/files/patch-log.h
new file mode 100644
index 000000000000..6fb0e637a3ea
--- /dev/null
+++ b/security/bsmtrace/files/patch-log.h
@@ -0,0 +1,11 @@
+--- log.h.orig 2020-08-23 21:49:13 UTC
++++ log.h
+@@ -30,7 +30,7 @@
+ #ifndef LOG_H_
+ #define LOG_H_
+
+-TAILQ_HEAD(, logchannel) log_head;
++extern TAILQ_HEAD(logchannel_head, logchannel) log_head;
+
+ enum {
+ LOG_CHANNEL_NOP,