mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-11 19:55:52 +02:00
Excerpt from changelog: "7.0.6 -- 2024-06-26 Security #7042: defrag: id reuse can lead to invalid reassembly (7.0.x backport)(CVE 2024-37151) Security #7105: http2: oom from duplicate headers (7.0.x backport) Security #7033: http/range: segv when http.memcap is reached (7.0.x backport) Security #6988: modbus: txs without responses are never freed (7.0.x backport) Bug #7107: packet: app-layer-events incorrectly used on recycled packets (7.0.x backport) Bug #7064: util/radix-tree: Possible dereference of nullptr in case of unsuccess allocation of memory for node (7.0.x backport) Bug #7063: smtp/mime: data command rejected by pipelining server does not reset data mode (7.0.x backport) Bug #7060: smtp: split name logged as 2 names (7.0.x backport) Bug #7050: af-packet: failure to start up on many threads plus high load (7.0.x backport) Bug #7043: Crasher in HTTP chunked / StreamingBuffer (7.0.x backport) Bug #7038: pcap/log: MacOS rotates file well before limit is reached (7.0.x backport) Bug #7035: time: in offline mode, time can stay behind at pcap start (7.0.x backport) Bug #7023: unix-socket: iface-bypassed-stat crash (7.0.x backport) Bug #7021: unix-socket: hostbit commands don't properly release host (7.0.x backport) Bug #7015: rust: build with rust 1.78 with slice::from_raw_parts now requiring the pointer to be non-null (7.0.x backport) Bug #6990: tls.random buffers don't work as expected (7.0.x backport) Bug #6986: iprep: rule with '=,0' can't match (7.0.x backport) Bug #6975: detect: log relevant frames app-layer metdata (7.0.x backport) Bug #6950: decode/ppp: decoder.event.ppp.wrong_type on valid packet (7.0.x backport) Bug #6897: detect/port: upper boundary ports are not correctly handled (7.0.x backport) Bug #6895: detect/port: port grouping does not happen correctly if gap between a single and range port (7.0.x backport) Bug #6862: Lightweight rules profiling: crash when profiling ends (7.0.x backport) Bug #6848: alerts: wrongly using tx id 0 when there is no tx (7.0.x backport) Bug #6845: coverity: warning in port grouping code (7.0.x backport) Bug #6844: detect/port: port ranges are incorrect when a port is single as well as a part of range (7.0.x backport) Bug #6690: Ethernet src should match src ip (7.0.x backport) Bug #6520: detect-engine/port: recursive DetectPortInsert calls are expensive (7.0.x backport) Optimization #6830: detect/port: port grouping is quite slow in worst cases (7.0.x backport) Optimization #6829: detect/port: PortGroupWhitelist fn takes a lot of processing time (7.0.x backport) Feature #7010: JA4 support for TLS and QUIC (7.0.x backport) Feature #6557: Capability to have rules profiling on pcap run (7.0.x backport) Documentation #6910: userguide: document how to verify tar.gz signature (7.0.x backport) Documentation #6687: docs: port userguide build instruction changes from master-6.0.x (7.0.x backport) Documentation #6601: docs: update eBPF installation instructions (7.0.x backport)" Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org> Reviewed-by: Michael Tremer <michael.tremer@ipfire.org> Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
137 lines
4.9 KiB
Plaintext
137 lines
4.9 KiB
Plaintext
###############################################################################
|
|
# #
|
|
# IPFire.org - A linux based firewall #
|
|
# Copyright (C) 2007-2024 IPFire Team <info@ipfire.org> #
|
|
# #
|
|
# This program is free software: you can redistribute it and/or modify #
|
|
# it under the terms of the GNU General Public License as published by #
|
|
# the Free Software Foundation, either version 3 of the License, or #
|
|
# (at your option) any later version. #
|
|
# #
|
|
# This program is distributed in the hope that it will be useful, #
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
|
|
# GNU General Public License for more details. #
|
|
# #
|
|
# You should have received a copy of the GNU General Public License #
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/>. #
|
|
# #
|
|
###############################################################################
|
|
|
|
###############################################################################
|
|
# Definitions
|
|
###############################################################################
|
|
|
|
include Config
|
|
|
|
VER = 7.0.6
|
|
|
|
THISAPP = suricata-$(VER)
|
|
DL_FILE = $(THISAPP).tar.gz
|
|
DL_FROM = $(URL_IPFIRE)
|
|
DIR_APP = $(DIR_SRC)/$(THISAPP)
|
|
TARGET = $(DIR_INFO)/$(THISAPP)
|
|
|
|
###############################################################################
|
|
# Top-level Rules
|
|
###############################################################################
|
|
|
|
objects = $(DL_FILE)
|
|
|
|
$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
|
|
|
|
$(DL_FILE)_BLAKE2 = e031eda35913f0db553ae68e6fc4173db2f0a87b2f2c60141edf09abba3eef44cdba6cca1db039c8814525ff803dd60ea13cbba7b66e57fed3ae5297f90c7b18
|
|
|
|
install : $(TARGET)
|
|
|
|
check : $(patsubst %,$(DIR_CHK)/%,$(objects))
|
|
|
|
download :$(patsubst %,$(DIR_DL)/%,$(objects))
|
|
|
|
b2 : $(subst %,%_BLAKE2,$(objects))
|
|
|
|
###############################################################################
|
|
# Downloading, checking, b2sum
|
|
###############################################################################
|
|
|
|
$(patsubst %,$(DIR_CHK)/%,$(objects)) :
|
|
@$(CHECK)
|
|
|
|
$(patsubst %,$(DIR_DL)/%,$(objects)) :
|
|
@$(LOAD)
|
|
|
|
$(subst %,%_BLAKE2,$(objects)) :
|
|
@$(B2SUM)
|
|
|
|
###############################################################################
|
|
# Installation Details
|
|
###############################################################################
|
|
|
|
$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
|
|
@$(PREBUILD)
|
|
@rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
|
|
cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/suricata/suricata-disable-sid-2210059.patch
|
|
cd $(DIR_APP) && LDFLAGS="$(LDFLAGS)" ./configure \
|
|
--prefix=/usr \
|
|
--sysconfdir=/etc \
|
|
--localstatedir=/var \
|
|
--enable-gccprotect \
|
|
--disable-gccmarch-native \
|
|
--enable-non-bundled-htp \
|
|
--enable-nfqueue \
|
|
--disable-static \
|
|
--disable-python \
|
|
--with-libjansson-libraries=/usr/lib \
|
|
--with-libjansson-includes=/usr/include \
|
|
--disable-suricata-update \
|
|
--enable-rust
|
|
|
|
cd $(DIR_APP) && make $(MAKETUNING)
|
|
cd $(DIR_APP) && make install
|
|
cd $(DIR_APP) && make install-conf
|
|
|
|
# Remove default suricata config file.
|
|
rm -rvf /etc/suricata/suricata.yaml
|
|
|
|
# Install IPFire related config file.
|
|
install -m 0644 $(DIR_SRC)/config/suricata/suricata.yaml /etc/suricata
|
|
|
|
# Create emtpy rules directory.
|
|
-mkdir -p /var/lib/suricata
|
|
|
|
# Create empty cache directory.
|
|
-mkdir -p /var/cache/suricata
|
|
|
|
# Move config files for references, threshold and classification
|
|
# to the rules directory.
|
|
rm -rfv /etc/suricata/*.config
|
|
|
|
# Set correct ownership for the classifiction config file.
|
|
# (File has to be writeable for the nobody user)
|
|
chown nobody:nobody /usr/share/suricata/classification.config
|
|
|
|
# Create empty threshold config file.
|
|
touch /usr/share/suricata/threshold.config
|
|
|
|
# Set correct ownership for the threshold.config file.
|
|
chown nobody:nobody /usr/share/suricata/threshold.config
|
|
|
|
# Set correct ownership for /var/lib/suricata and the
|
|
# contained files
|
|
chown -R nobody:nobody /var/lib/suricata
|
|
|
|
# Set correct ownership for the cache directory.
|
|
chown nobody:nobody /var/cache/suricata
|
|
|
|
# Create logging directory.
|
|
-mkdir -p /var/log/suricata
|
|
|
|
# Set correct ownership for /var/log/suricata.
|
|
chown suricata:suricata /var/log/suricata
|
|
|
|
# Install converter script needed for Core Update 167
|
|
install -m 0755 $(DIR_SRC)/config/suricata/convert-ids-backend-files /usr/sbin/convert-ids-backend-files
|
|
|
|
@rm -rf $(DIR_APP)
|
|
@$(POSTBUILD)
|