|
|
|
@ -263,7 +263,7 @@ jobs:
|
|
|
|
|
- name: Configuring
|
|
|
|
|
run: |
|
|
|
|
|
./autogen.sh
|
|
|
|
|
CFLAGS="${DEFAULT_CFLAGS}" ./configure
|
|
|
|
|
CFLAGS="${DEFAULT_CFLAGS}" ./configure --enable-warnings
|
|
|
|
|
- run: make -j ${{ env.CPUS }} distcheck
|
|
|
|
|
env:
|
|
|
|
|
DISTCHECK_CONFIGURE_FLAGS: "--enable-unittests --enable-debug --enable-lua --enable-geoip --enable-profiling --enable-profiling-locks --enable-dpdk"
|
|
|
|
@ -778,7 +778,7 @@ jobs:
|
|
|
|
|
- run: tar xf prep/libhtp.tar.gz
|
|
|
|
|
- run: tar xf prep/suricata-update.tar.gz
|
|
|
|
|
- run: ./autogen.sh
|
|
|
|
|
- run: ./configure --disable-shared
|
|
|
|
|
- run: ./configure --enable-warnings --disable-shared
|
|
|
|
|
env:
|
|
|
|
|
CC: "clang"
|
|
|
|
|
RUSTFLAGS: "-C instrument-coverage"
|
|
|
|
@ -877,7 +877,7 @@ jobs:
|
|
|
|
|
- run: CC="clang" CFLAGS="$DEFAULT_CFLAGS -Wshadow" ./configure --disable-shared
|
|
|
|
|
- run: make check
|
|
|
|
|
- run: make distclean
|
|
|
|
|
- run: CC="clang" CFLAGS="$DEFAULT_CFLAGS -Wshadow -fsanitize=address -fno-omit-frame-pointer" ./configure --enable-debug --enable-unittests --disable-shared --enable-rust-strict --enable-hiredis --enable-nfqueue --enable-lua
|
|
|
|
|
- run: CC="clang" CFLAGS="$DEFAULT_CFLAGS -Wshadow -fsanitize=address -fno-omit-frame-pointer" ./configure --enable-warnings --enable-debug --enable-unittests --disable-shared --enable-rust-strict --enable-hiredis --enable-nfqueue --enable-lua
|
|
|
|
|
env:
|
|
|
|
|
LDFLAGS: "-fsanitize=address"
|
|
|
|
|
ac_cv_func_realloc_0_nonnull: "yes"
|
|
|
|
@ -968,7 +968,7 @@ jobs:
|
|
|
|
|
- run: tar xf prep/libhtp.tar.gz
|
|
|
|
|
- run: tar xf prep/suricata-update.tar.gz
|
|
|
|
|
- run: ./autogen.sh
|
|
|
|
|
- run: ./configure --enable-debug --enable-unittests --disable-shared --enable-rust-strict --enable-hiredis --enable-nfqueue
|
|
|
|
|
- run: ./configure --enable-warnings --enable-debug --enable-unittests --disable-shared --enable-rust-strict --enable-hiredis --enable-nfqueue
|
|
|
|
|
env:
|
|
|
|
|
CFLAGS: "${{ env.DEFAULT_CFLAGS }} -Wshadow -fsanitize=address -fno-omit-frame-pointer"
|
|
|
|
|
LDFLAGS: "-fsanitize=address"
|
|
|
|
@ -1252,7 +1252,7 @@ jobs:
|
|
|
|
|
- run: sudo -u suricata -s ./autogen.sh
|
|
|
|
|
working-directory: /home/suricata/suricata
|
|
|
|
|
|
|
|
|
|
- run: sudo -u suricata -s env PATH="/home/suricata/.cargo/bin:$PATH" ./configure --enable-debug --enable-unittests --disable-shared --enable-rust-strict --enable-hiredis --enable-nfqueue
|
|
|
|
|
- run: sudo -u suricata -s env PATH="/home/suricata/.cargo/bin:$PATH" ./configure --enable-warnings --enable-debug --enable-unittests --disable-shared --enable-rust-strict --enable-hiredis --enable-nfqueue
|
|
|
|
|
working-directory: /home/suricata/suricata
|
|
|
|
|
env:
|
|
|
|
|
ac_cv_func_realloc_0_nonnull: "yes"
|
|
|
|
@ -1497,7 +1497,7 @@ jobs:
|
|
|
|
|
chmod 755 $HOME/.cargo/bin/cbindgen
|
|
|
|
|
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
|
|
|
|
|
- run: ./autogen.sh
|
|
|
|
|
- run: ./configure --disable-shared --enable-unittests
|
|
|
|
|
- run: ./configure --enable-warnings --disable-shared --enable-unittests
|
|
|
|
|
env:
|
|
|
|
|
CC: "clang-14"
|
|
|
|
|
CXX: "clang++-14"
|
|
|
|
@ -2086,7 +2086,7 @@ jobs:
|
|
|
|
|
# using leading to random crashes: https://github.com/actions/runner-images/issues/9491
|
|
|
|
|
run: sudo sysctl vm.mmap_rnd_bits=28
|
|
|
|
|
- run: ./autogen.sh
|
|
|
|
|
- run: ./configure --with-gnu-ld --enable-fuzztargets --disable-shared --enable-gccprotect
|
|
|
|
|
- run: ./configure --enable-warnings --with-gnu-ld --enable-fuzztargets --disable-shared --enable-gccprotect
|
|
|
|
|
env:
|
|
|
|
|
LIB_FUZZING_ENGINE: "fail_to_onefile_driver"
|
|
|
|
|
CC: "clang-14"
|
|
|
|
@ -2182,7 +2182,7 @@ jobs:
|
|
|
|
|
chmod 755 $HOME/.cargo/bin/cbindgen
|
|
|
|
|
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
|
|
|
|
|
- run: ./autogen.sh
|
|
|
|
|
- run: CFLAGS="$DEFAULT_CFLAGS -DNDEBUG" ./configure --enable-unittests
|
|
|
|
|
- run: CFLAGS="$DEFAULT_CFLAGS -DNDEBUG" ./configure --enable-warnings --enable-unittests
|
|
|
|
|
- run: make -j ${{ env.CPUS }}
|
|
|
|
|
- run: make check
|
|
|
|
|
- run: make dist
|
|
|
|
@ -2345,7 +2345,7 @@ jobs:
|
|
|
|
|
# using leading to random crashes: https://github.com/actions/runner-images/issues/9491
|
|
|
|
|
run: sudo sysctl vm.mmap_rnd_bits=28
|
|
|
|
|
- run: ./autogen.sh
|
|
|
|
|
- run: ./configure --enable-debug-validation
|
|
|
|
|
- run: ./configure --enable-warnings --enable-debug-validation
|
|
|
|
|
env:
|
|
|
|
|
CFLAGS: "${{ env.DEFAULT_CFLAGS }} -Wshadow -fsanitize=address -fno-omit-frame-pointer"
|
|
|
|
|
LDFLAGS: "-fsanitize=address"
|
|
|
|
@ -2427,7 +2427,7 @@ jobs:
|
|
|
|
|
chmod 755 $HOME/.cargo/bin/cbindgen
|
|
|
|
|
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
|
|
|
|
|
- run: ./autogen.sh
|
|
|
|
|
- run: AFL_HARDEN=1 ac_cv_func_realloc_0_nonnull=yes ac_cv_func_malloc_0_nonnull=yes CFLAGS="-fsanitize=address -fno-omit-frame-pointer" CXXFLAGS=$CFLAGS CC=afl-clang-fast CXX=afl-clang-fast++ LDFLAGS="-fsanitize=address" ./configure --enable-fuzztargets --disable-shared
|
|
|
|
|
- run: AFL_HARDEN=1 ac_cv_func_realloc_0_nonnull=yes ac_cv_func_malloc_0_nonnull=yes CFLAGS="-fsanitize=address -fno-omit-frame-pointer" CXXFLAGS=$CFLAGS CC=afl-clang-fast CXX=afl-clang-fast++ LDFLAGS="-fsanitize=address" ./configure --enable-warnings --enable-fuzztargets --disable-shared
|
|
|
|
|
- run: AFL_HARDEN=1 make -j ${{ env.CPUS }}
|
|
|
|
|
|
|
|
|
|
ubuntu-22-04-netmap-build:
|
|
|
|
@ -2521,7 +2521,7 @@ jobs:
|
|
|
|
|
chmod 755 $HOME/.cargo/bin/cbindgen
|
|
|
|
|
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
|
|
|
|
|
- run: ./autogen.sh
|
|
|
|
|
- run: CFLAGS="${DEFAULT_CFLAGS}" ./configure --enable-netmap
|
|
|
|
|
- run: CFLAGS="${DEFAULT_CFLAGS}" ./configure --enable-warnings --enable-netmap
|
|
|
|
|
- run: make -j ${{ env.CPUS }}
|
|
|
|
|
- run: ./src/suricata --build-info | grep -E "Netmap support:\s+yes"
|
|
|
|
|
|
|
|
|
@ -2626,7 +2626,7 @@ jobs:
|
|
|
|
|
chmod 755 $HOME/.cargo/bin/cbindgen
|
|
|
|
|
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
|
|
|
|
|
- run: ./autogen.sh
|
|
|
|
|
- run: CFLAGS="${DEFAULT_CFLAGS}" ./configure --enable-dpdk
|
|
|
|
|
- run: CFLAGS="${DEFAULT_CFLAGS}" ./configure --enable-warnings --enable-dpdk
|
|
|
|
|
- run: make -j ${{ env.CPUS }}
|
|
|
|
|
- run: make check
|
|
|
|
|
# IDS config
|
|
|
|
@ -2708,7 +2708,7 @@ jobs:
|
|
|
|
|
- run: tar xf prep/suricata-update.tar.gz
|
|
|
|
|
- run: tar xf prep/suricata-verify.tar.gz
|
|
|
|
|
- run: ./autogen.sh
|
|
|
|
|
- run: CFLAGS="${DEFAULT_CFLAGS}" ./configure --enable-unittests
|
|
|
|
|
- run: CFLAGS="${DEFAULT_CFLAGS}" ./configure --enable-warnings --enable-unittests
|
|
|
|
|
- run: make -j ${{ env.CPUS }}
|
|
|
|
|
- run: make check
|
|
|
|
|
# -j2 caused random failures during cargo vendor
|
|
|
|
@ -2888,7 +2888,7 @@ jobs:
|
|
|
|
|
- run: tar xf prep/suricata-update.tar.gz
|
|
|
|
|
- run: tar xf prep/suricata-verify.tar.gz
|
|
|
|
|
- run: ./autogen.sh
|
|
|
|
|
- run: CFLAGS="${DEFAULT_CFLAGS}" ./configure --enable-unittests --enable-debug --enable-lua --enable-geoip --enable-profiling --enable-profiling-locks --enable-dpdk
|
|
|
|
|
- run: CFLAGS="${DEFAULT_CFLAGS}" ./configure --enable-warnings --enable-unittests --enable-debug --enable-lua --enable-geoip --enable-profiling --enable-profiling-locks --enable-dpdk
|
|
|
|
|
- run: make -j ${{ env.CPUS }}
|
|
|
|
|
- run: make check
|
|
|
|
|
- name: Building Rust documentation
|
|
|
|
@ -2974,7 +2974,7 @@ jobs:
|
|
|
|
|
cp prep/cbindgen $HOME/.cargo/bin
|
|
|
|
|
chmod 755 $HOME/.cargo/bin/cbindgen
|
|
|
|
|
- run: ./autogen.sh
|
|
|
|
|
- run: CFLAGS="${DEFAULT_CFLAGS}" ./configure --enable-unittests --enable-fuzztargets --enable-ebpf --enable-ebpf-build
|
|
|
|
|
- run: CFLAGS="${DEFAULT_CFLAGS}" ./configure --enable-warnings --enable-unittests --enable-fuzztargets --enable-ebpf --enable-ebpf-build
|
|
|
|
|
- run: make -j ${{ env.CPUS }}
|
|
|
|
|
- run: make check
|
|
|
|
|
- run: tar xf prep/suricata-verify.tar.gz
|
|
|
|
@ -3055,7 +3055,7 @@ jobs:
|
|
|
|
|
cp prep/cbindgen $HOME/.cargo/bin
|
|
|
|
|
chmod 755 $HOME/.cargo/bin/cbindgen
|
|
|
|
|
- run: ./autogen.sh
|
|
|
|
|
- run: CFLAGS="${DEFAULT_CFLAGS}" ./configure --enable-unittests --enable-fuzztargets
|
|
|
|
|
- run: CFLAGS="${DEFAULT_CFLAGS}" ./configure --enable-warnings --enable-unittests --enable-fuzztargets
|
|
|
|
|
- run: make -j ${{ env.CPUS }}
|
|
|
|
|
- run: make check
|
|
|
|
|
- run: tar xf prep/suricata-verify.tar.gz
|
|
|
|
@ -3108,7 +3108,7 @@ jobs:
|
|
|
|
|
- run: tar xvf prep/libhtp.tar.gz
|
|
|
|
|
- run: tar xvf prep/suricata-update.tar.gz
|
|
|
|
|
- run: ./autogen.sh
|
|
|
|
|
- run: CPATH="$HOMEBREW_PREFIX/include:$CPATH" LIBRARY_PATH="$HOMEBREW_PREFIX/lib:$LIBRARY_PATH" PATH="/opt/homebrew/opt/libtool/libexec/gnubin:$PATH" CFLAGS="${DEFAULT_CFLAGS}" ./configure --enable-unittests --prefix="$HOME/.local/"
|
|
|
|
|
- run: CPATH="$HOMEBREW_PREFIX/include:$CPATH" LIBRARY_PATH="$HOMEBREW_PREFIX/lib:$LIBRARY_PATH" PATH="/opt/homebrew/opt/libtool/libexec/gnubin:$PATH" CFLAGS="${DEFAULT_CFLAGS}" ./configure --enable-warnings --enable-unittests --prefix="$HOME/.local/"
|
|
|
|
|
- run: CPATH="$HOMEBREW_PREFIX/include:$CPATH" LIBRARY_PATH="$HOMEBREW_PREFIX/lib:$LIBRARY_PATH" PATH="/opt/homebrew/opt/libtool/libexec/gnubin:$PATH" CFLAGS="${DEFAULT_CFLAGS}" make -j2
|
|
|
|
|
# somehow it gets included by some C++ stdlib header (case unsensitive)
|
|
|
|
|
- run: rm libhtp/VERSION && make check
|
|
|
|
@ -3164,7 +3164,7 @@ jobs:
|
|
|
|
|
- name: Build
|
|
|
|
|
run: |
|
|
|
|
|
./autogen.sh
|
|
|
|
|
CFLAGS="-ggdb -Werror" ./configure --enable-unittests --enable-gccprotect --disable-gccmarch-native --disable-shared --with-libpcap-includes=/npcap/Include --with-libpcap-libraries=/npcap/Lib/x64
|
|
|
|
|
CFLAGS="-ggdb -Werror" ./configure --enable-warnings --enable-unittests --enable-gccprotect --disable-gccmarch-native --disable-shared --with-libpcap-includes=/npcap/Include --with-libpcap-libraries=/npcap/Lib/x64
|
|
|
|
|
make -j3
|
|
|
|
|
- name: Run
|
|
|
|
|
run: |
|
|
|
|
@ -3209,7 +3209,7 @@ jobs:
|
|
|
|
|
- name: Build
|
|
|
|
|
run: |
|
|
|
|
|
./autogen.sh
|
|
|
|
|
CFLAGS="-ggdb -Werror" ./configure --enable-unittests --enable-gccprotect --disable-gccmarch-native --disable-shared --with-libpcap-includes=/npcap/Include --with-libpcap-libraries=/npcap/Lib/x64
|
|
|
|
|
CFLAGS="-ggdb -Werror" ./configure --enable-warnings --enable-unittests --enable-gccprotect --disable-gccmarch-native --disable-shared --with-libpcap-includes=/npcap/Include --with-libpcap-libraries=/npcap/Lib/x64
|
|
|
|
|
make -j3
|
|
|
|
|
- name: Run
|
|
|
|
|
run: |
|
|
|
|
@ -3258,7 +3258,7 @@ jobs:
|
|
|
|
|
- name: Build
|
|
|
|
|
run: |
|
|
|
|
|
./autogen.sh
|
|
|
|
|
CFLAGS="-ggdb -Werror" ./configure --enable-gccprotect --disable-gccmarch-native --disable-shared --enable-windivert --with-windivert-include=/windivert/WinDivert-1.4.3-A/include --with-windivert-libraries=/windivert/WinDivert-1.4.3-A/x86_64
|
|
|
|
|
CFLAGS="-ggdb -Werror" ./configure --enable-warnings --enable-gccprotect --disable-gccmarch-native --disable-shared --enable-windivert --with-windivert-include=/windivert/WinDivert-1.4.3-A/include --with-windivert-libraries=/windivert/WinDivert-1.4.3-A/x86_64
|
|
|
|
|
make -j3
|
|
|
|
|
- name: Run
|
|
|
|
|
run: |
|
|
|
|
|