diff options
author | Armin Kuster <akuster808@gmail.com> | 2019-09-04 23:03:55 +0000 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2019-09-07 08:34:22 -0700 |
commit | d75dc96fa3ddc1fb7f72a97e220813e592d8f5ad (patch) | |
tree | 96dc214ba1dc27be896ec318c7d37d6990ebb0e5 | |
parent | e8e3044fcebc044b35792f48127c4977c1423e5b (diff) | |
download | meta-security-d75dc96fa3ddc1fb7f72a97e220813e592d8f5ad.tar.gz |
suricata: update to 4.1.4
Backport patch to fix build against newer kernels.
Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r-- | recipes-ids/suricata/files/0001-af-packet-fix-build-on-recent-Linux-kernels.patch | 26 | ||||
-rw-r--r-- | recipes-ids/suricata/libhtp_0.5.30.bb (renamed from recipes-ids/suricata/libhtp_0.5.29.bb) | 0 | ||||
-rw-r--r-- | recipes-ids/suricata/suricata.inc | 6 | ||||
-rw-r--r-- | recipes-ids/suricata/suricata_4.1.4.bb (renamed from recipes-ids/suricata/suricata_4.1.3.bb) | 11 |
4 files changed, 35 insertions, 8 deletions
diff --git a/recipes-ids/suricata/files/0001-af-packet-fix-build-on-recent-Linux-kernels.patch b/recipes-ids/suricata/files/0001-af-packet-fix-build-on-recent-Linux-kernels.patch new file mode 100644 index 0000000..74e9a56 --- /dev/null +++ b/recipes-ids/suricata/files/0001-af-packet-fix-build-on-recent-Linux-kernels.patch | |||
@@ -0,0 +1,26 @@ | |||
1 | From b37554e0bc3cf383e6547c5c6a69c6f6849c09e3 Mon Sep 17 00:00:00 2001 | ||
2 | From: Eric Leblond <eric@regit.org> | ||
3 | Date: Wed, 17 Jul 2019 12:35:12 +0200 | ||
4 | Subject: [PATCH] af-packet: fix build on recent Linux kernels | ||
5 | |||
6 | Upstream-Status: Backport | ||
7 | Signed-off-by: Armin kuster <akuster808@gmail.com> | ||
8 | --- | ||
9 | src/source-af-packet.c | 4 ++++ | ||
10 | 1 file changed, 4 insertions(+) | ||
11 | |||
12 | Index: suricata-4.1.4/src/source-af-packet.c | ||
13 | =================================================================== | ||
14 | --- suricata-4.1.4.orig/src/source-af-packet.c | ||
15 | +++ suricata-4.1.4/src/source-af-packet.c | ||
16 | @@ -64,6 +64,10 @@ | ||
17 | #include <sys/ioctl.h> | ||
18 | #endif | ||
19 | |||
20 | +#if HAVE_LINUX_SOCKIOS_H | ||
21 | +#include <linux/sockios.h> | ||
22 | +#endif | ||
23 | + | ||
24 | #ifdef HAVE_PACKET_EBPF | ||
25 | #include "util-ebpf.h" | ||
26 | #include <bpf/libbpf.h> | ||
diff --git a/recipes-ids/suricata/libhtp_0.5.29.bb b/recipes-ids/suricata/libhtp_0.5.30.bb index 8305f70..8305f70 100644 --- a/recipes-ids/suricata/libhtp_0.5.29.bb +++ b/recipes-ids/suricata/libhtp_0.5.30.bb | |||
diff --git a/recipes-ids/suricata/suricata.inc b/recipes-ids/suricata/suricata.inc index 7be403c..54f91c5 100644 --- a/recipes-ids/suricata/suricata.inc +++ b/recipes-ids/suricata/suricata.inc | |||
@@ -2,8 +2,8 @@ HOMEPAGE = "http://suricata-ids.org/" | |||
2 | SECTION = "security Monitor/Admin" | 2 | SECTION = "security Monitor/Admin" |
3 | LICENSE = "GPLv2" | 3 | LICENSE = "GPLv2" |
4 | 4 | ||
5 | VER = "4.1.3" | 5 | VER = "4.1.4" |
6 | SRC_URI = "http://www.openinfosecfoundation.org/download/suricata-${VER}.tar.gz" | 6 | SRC_URI = "http://www.openinfosecfoundation.org/download/suricata-${VER}.tar.gz" |
7 | 7 | ||
8 | SRC_URI[md5sum] = "35c4a8e6be3910831649a073950195df" | 8 | SRC_URI[md5sum] = "cb8bf6b8330c44ae78dfb5b083a6fe82" |
9 | SRC_URI[sha256sum] = "6cda6c80b753ce36483c6be535358b971f3890b9aa27a58c2d2f7e89dd6c6aa0" | 9 | SRC_URI[sha256sum] = "2da50d91f92adf8b1af930f388361f76424420b88f553f610e2780e4240f2009" |
diff --git a/recipes-ids/suricata/suricata_4.1.3.bb b/recipes-ids/suricata/suricata_4.1.4.bb index d6f5937..f860af9 100644 --- a/recipes-ids/suricata/suricata_4.1.3.bb +++ b/recipes-ids/suricata/suricata_4.1.4.bb | |||
@@ -7,11 +7,12 @@ LIC_FILES_CHKSUM = "file://LICENSE;beginline=1;endline=2;md5=c70d8d3310941dcdfcd | |||
7 | SRC_URI += "file://emerging.rules.tar.gz;name=rules" | 7 | SRC_URI += "file://emerging.rules.tar.gz;name=rules" |
8 | 8 | ||
9 | SRC_URI += " \ | 9 | SRC_URI += " \ |
10 | file://volatiles.03_suricata \ | 10 | file://volatiles.03_suricata \ |
11 | file://suricata.yaml \ | 11 | file://suricata.yaml \ |
12 | file://suricata.service \ | 12 | file://suricata.service \ |
13 | file://run-ptest \ | 13 | file://run-ptest \ |
14 | " | 14 | file://0001-af-packet-fix-build-on-recent-Linux-kernels.patch \ |
15 | " | ||
15 | 16 | ||
16 | SRC_URI[rules.md5sum] = "205c5e5b54e489207ed892c03ad75b33" | 17 | SRC_URI[rules.md5sum] = "205c5e5b54e489207ed892c03ad75b33" |
17 | SRC_URI[rules.sha256sum] = "4aa81011b246875a57181c6a0569ca887845e366904bcaf0043220f33bd69798" | 18 | SRC_URI[rules.sha256sum] = "4aa81011b246875a57181c6a0569ca887845e366904bcaf0043220f33bd69798" |