Commit Graph

376 Commits (9cc92b8dd59ea97e0a9051542d34680e53afc31b)

Author SHA1 Message Date
Jeff Lucovsky 26b78abc0f netmap: allow specifying a library directory
Ticket: #4482
(cherry picked from commit 142a579971)
4 years ago
Jeff Lucovsky ca5a3d6d78 config/netmap: Permit selection of new/legacy APIs 4 years ago
Victor Julien 2c0d3d715f version: development is towards 6.0.9 4 years ago
Victor Julien 84536b0b69 release: 6.0.8; update changelog
Re-releasing 6.0.7 with the correct libhtp and Suricata-Update versions.
4 years ago
Shivani Bhardwaj 8d62ca8fb0 release: 6.0.7; update changelog 4 years ago
Jason Ish c8a3aa608e python: install without distutils
Instead of using distutils/setuptools for installing the Python code,
just install it into our own Python directory.

Distutils is being removed from Python, and setuptools doesn't work well
when trying to install into your own location. For our usage its just
simpler to install with make.

In addition to removing the configure check for distutils, also remove
the check for pyyaml. This lets the user install pyyaml after Suricata
is installed, and Suricata-Update does handle this case gracefully.

Issue: #5313

(cherry picked from commit 9a1d6af858)
4 years ago
Jason Ish ce1b06cd7c version: start development towards 6.0.7 4 years ago
Jason Ish 67f5720885 release: 6.0.6; update changelog 4 years ago
Eric Leblond 11159b3a21 util/ebpf: fix deprecation warning
The function bpf_program__title has been deprecated in favor of
bpf_program__section_name.

(cherry picked from commit d477d3a878)
4 years ago
Victor Julien 8a163730ae version: start development towards 6.0.6 4 years ago
Victor Julien 7ca66206b6 release: 6.0.5; update changelog; require htp 0.5.40 4 years ago
Jeff Lucovsky 0e2d76f836 config: Make libunwind use configurable for 6.0
Issue: 4973

This commit makes stack-trace on fault configurable by
adding "--enable-libunwind" as a configure option.

By default, or if "--enable-libunwind=no" is specified, the libunwind
library will not be configured.

When "--enable-libunwind=yes" is specified, libunwind will be used iff
it can be found in one of the standard library locations.
4 years ago
Jeff Lucovsky 285f57861e configure.ac: Support libunwind configuration
This commit adds support for enabling libunwind -- a library that can be
used to display stack information.

Libunwind is enabled and used by Suricata if present during
configuration.  A diagnostic message is displayed if libunwind
cannot be found.

(cherry picked from commit 303dd29b50)
4 years ago
Jeff Lucovsky 9923083039 config/debug: Debug probe for getattr_np
This commit adds a probe for a non-portable function to be used in
diagnostic debug display of a thread's stack size.

(cherry picked from commit deb49862cd)
5 years ago
Shivani Bhardwaj 87f04475aa rust: bump MSRV to 1.41.1
Ticket: #4902.
5 years ago
Victor Julien 6a06e07eb3 mingw: add bcrypt to LDADD for rust compilation
(cherry picked from commit e93dc24383)
5 years ago
Victor Julien 055262dac9 version: start development towards 6.0.5 5 years ago
Victor Julien e9c8767b90 release: 6.0.4; update changelog; require htp 0.5.39 5 years ago
Jason Ish d630db85f3 release: 6.0.3; update changelog; require htp 0.5.38 5 years ago
Philippe Antoine e0764e1e12 http2: make decompression a configure-time option 5 years ago
Victor Julien 7ce77213cd version: start development towards 6.0.3 6 years ago
Victor Julien 7a626fffd2 release: 6.0.2; update changelog; require htp 0.5.37 6 years ago
Philippe Antoine eb2a5587fb http: makes decompression time limit configurable
(cherry picked from commit a04b5566a6)
6 years ago
Victor Julien a7eda4eed0 version: start development towards 6.0.2 6 years ago
Victor Julien e860b9eee9 version: set to 6.0.1 6 years ago
Victor Julien f5af8864f7 configure: require libhtp 0.5.36 6 years ago
Jason Ish f3c59ef8a6 rust: handle windows naming change from .lib to .a
Prior to Rust 1.44, Cargo would name static libs with the .lib
extension. 1.44 changes this extension to .a when running under
a GNU environment on Windows like msys to make it more similar
to other unix environments.

Now assume static library name to be the same on Windows and
unix, but rename the .lib if found to still support older
versions of Rust on Windows.
6 years ago
Jason Ish 10f639e9d1 configure/mingw: move libs in LDFLAGS to LDADD
Moving the libs specified in LDFLAGS to LDADD put them into the
correct placement on in the link command.
6 years ago
Philippe Antoine 466466883b rust: do not rebuild stdlib when coverage is enabled
Because both seem incompatible for now
6 years ago
Victor Julien 8d0b0e8739 atomics: fix compilation on ppc64 6 years ago
Victor Julien 95729e923f configure: remove left over reference to unified2 6 years ago
Victor Julien 8fdee4f685 version: start development towards 6.0.1 6 years ago
Victor Julien 5219691f45 version: update to 6.0.0, require libhtp 0.5.35 6 years ago
Philippe Antoine 4f963717f8 fuzz: better configure checks for MSAN building
More compatible check for rust nightly
Checks for CARGO_BUILD_TARGET
Builds release or debug mode independently
6 years ago
Philippe Antoine 222b386102 rust: rebuilds std when building fuzzers
so as to have MSAN working
6 years ago
Victor Julien 2bef41a630 version: continue 6 development 6 years ago
Victor Julien 914391697a version: update to 6.0.0-rc1 6 years ago
Philippe Antoine 9b5c923327 http: disables lzma by default for HTTP 6 years ago
Jason Ish ea1338b464 rust: function macro now returns the function name
Borrow a macro from https://github.com/popzxc/stdext-rs that
will give us the Rust function name in SCLog messages in Rust.

As this trick only works on Rust 1.38 and newer, keep the old
macro around and set a feature based on a Rust version test
done during ./configure.
6 years ago
Jason Ish da3930e488 configure: fix test for rust headers for cross compile
Use "if test ..." instead of AC_CHECK_FILES which does not work
when cross compiling.
6 years ago
Jeff Lucovsky 5c725d5050 config/lua: Cross-compiling support
This commit guards the run-time check for a Lua integer so that it no
longer attempts execution in a cross-compilation environment.
6 years ago
Jeff Lucovsky 3e8db21ef3 config/pcre: Improved support for cross-compiling
This commit changes the logic used to determine if pcre_jit_exec is
available from a run-time to a compile-time check.
6 years ago
Jason Ish fbc9da450d configure: fix detection of netfilter_queue with older headers
Define _GNU_SOURCE and include sys/types.h so older
netfilter_queue headers can be detected properly, as they are
using u_int_xx style integers.
6 years ago
Victor Julien 22c70f7d66 version: continue 6 development 6 years ago
Victor Julien bb01d8ca31 version: update to 6.0.0-beta1 6 years ago
Jason Ish ff81212d8b configure: check for plugin support
Currently plugin support requires the dlfcn.h header
file and compiler support for -rdynamic.
6 years ago
Jason Ish 900f1522b4 plugins: config.h: move into src and rename to autoconf.h
While fixing files that include config.h, just remove the
include if possible.
6 years ago
Jason Ish e6668560e0 rust: only run cbindgen if needed
Only run cbindgen when necessary. This is a bit tricky. When
building a dist we want to unconditionally build the headers.

When going through a "make; sudo make install" type process,
cbindgen should not be run as the headers already exist, are
valid, and the environment under sudo is more often than
not suitable to pick up the Rust toolchains when installed
with rustup.

For the normal "make" case we have the gen/rust-bindings.h file
depend on library file, this will cause it to only be rebuilt
if the code was modified.

For "make dist" we unconditionally create "dist/rust-bindings.h".
This means the generated file could be in 2 locations, so update
configure.ac, and the library search find to find it.

The "gen/rust-bindings.h" should be picked up first if it exists,
for those who develop from a dist archive where "dist/rust-bindings.h"
also exists.

Not completely happy having the same file in 2 locations, but not
sure how else to get the dependency tracking correct.
6 years ago
Jeff Lucovsky 15b4554ab3 output: Check for fwrite_unlocked
This commit creates a macro for fwrite_unlocked which is probed during
configuration time.
6 years ago
Philippe Antoine 4554ca168a build: allows use of env variable CARGO_BUILD_TARGET
needed by oss-fuzz
6 years ago