]> git.ipfire.org Git - thirdparty/suricata.git/log
thirdparty/suricata.git
5 years agogithub-actions: builds for our tier one linux distributions 4393/head
Jason Ish [Sun, 24 Nov 2019 05:36:48 +0000 (23:36 -0600)] 
github-actions: builds for our tier one linux distributions

Example of using GitHub actions to perform builds across
CentOS, Ubuntu, Debian and the latest Fedora.

5 years agompm: Fix typos and spelling errors
Jeff Lucovsky [Sat, 23 Nov 2019 19:47:11 +0000 (14:47 -0500)] 
mpm: Fix typos and spelling errors

5 years agodetect: Fix spelling errors
Jeff Lucovsky [Sat, 23 Nov 2019 19:43:41 +0000 (14:43 -0500)] 
detect: Fix spelling errors

5 years agodetect: Improve handling of variable values
Jeff Lucovsky [Sat, 23 Nov 2019 19:35:40 +0000 (14:35 -0500)] 
detect: Improve handling of variable values

When one of offset/depth/distance is from a variable, adjust the depth
by the offset as is done with scalar values at parse time.

5 years agodetect/mpm: Improved handling of variable values
Jeff Lucovsky [Sat, 23 Nov 2019 19:33:38 +0000 (14:33 -0500)] 
detect/mpm: Improved handling of variable values

This commit removes the offset and depth if either of these values are
dependent upon a byte-extract operation.

5 years agohttp: split request/response tx id handling
Victor Julien [Sat, 23 Nov 2019 21:25:02 +0000 (22:25 +0100)] 
http: split request/response tx id handling

When HTTP pipelining was in use, the transaction id used for events
and files could be off. If the request side was several requests ahead
of the responses, it would use the HtpState::transaction_cnt for events
and files, even though that is only incremented on complete requests.

Split request and response tx id tracking. The response is still handled
by the HtpState::transaction_cnt, but the request side is now handled by
its own logic.

5 years agofiles: remove FILE_USE_TRACKID flag
Victor Julien [Fri, 22 Nov 2019 15:32:43 +0000 (16:32 +0100)] 
files: remove FILE_USE_TRACKID flag

Once it was optional but as it no longer is it is no longer useful.

Remove it.

5 years agofiles: simplify pruning logic
Victor Julien [Fri, 22 Nov 2019 14:33:27 +0000 (15:33 +0100)] 
files: simplify pruning logic

Since ebcc4db84ac2c1957a6cc23b5154d7d6333f4cb8 the flow worker runs
file pruning after parsing, detection and loging. This means we can
simplify the pruning logic. If a file is in state >= CLOSED, we can
prune it. Detection and outputs will have had a final chance to
process it.

Remove the calls to the pruning code from Rust. They are no longer
needed.

5 years agoapp-layer: don't consider tx flags if not registered
Victor Julien [Fri, 22 Nov 2019 06:54:04 +0000 (07:54 +0100)] 
app-layer: don't consider tx flags if not registered

If a protocol does not support TxDetectFlags, don't try to use them.

The consequence of trying to use them was that a TX would never be
considered done, and it would never be freed. This would lead to excessive
memory use and performance problems due to walking an ever increasing
list.

5 years agosource-pcap-file: honor bpf filter on command line
Eric Leblond [Tue, 19 Nov 2019 16:21:10 +0000 (17:21 +0100)] 
source-pcap-file: honor bpf filter on command line

When a BPF filter is given on the command line when reading a
pcap file, the BPF filter is not honored.

The regression has been introduced in:

commit 3ab9120821e2b5cbc5925470bcfa5bcfb53f246b
Author: Dana Helwig <dana.helwig@protectwise.com>
Date:   Thu Apr 27 11:17:16 2017 -0600

    source-pcap-file: Pcap Directory Mode (Feature #2222)

Reported-By: Tim Colin <tcolin@et.esiea.fr>
5 years agosource-pcap-file: fix memory leak on pcap filter
Eric Leblond [Tue, 19 Nov 2019 16:28:05 +0000 (17:28 +0100)] 
source-pcap-file: fix memory leak on pcap filter

5 years agoutil: removes warning about double conversion
Philippe Antoine [Fri, 1 Nov 2019 07:48:56 +0000 (08:48 +0100)] 
util: removes warning about double conversion

From clang 10 :
implicit conversion from 'unsigned long' to 'double' changes value
from 18446744073709551615 to 18446744073709551616

5 years agodetect: fix inspection buffer for packet engines
Victor Julien [Tue, 19 Nov 2019 15:47:47 +0000 (16:47 +0100)] 
detect: fix inspection buffer for packet engines

Fix buffers not being reset per inspection round for packet engines.

Bug #3341.

5 years agothreading: add debug validation for stale packets
Victor Julien [Mon, 25 Nov 2019 18:45:42 +0000 (19:45 +0100)] 
threading: add debug validation for stale packets

5 years agothreading: fix shutdown race condition
Victor Julien [Fri, 8 Nov 2019 11:09:24 +0000 (12:09 +0100)] 
threading: fix shutdown race condition

A BUG_ON statement would seemingly randomly trigger during the threading
shutdown logic. After a packet thread reached the THV_RUNNING_DONE state,
it would sometimes still receive flow timeout packets which would then
remain unprocessed.

1 main:   TmThreadDisableReceiveThreads(); <- stop capturing packets
2 worker: -> TmThreadTimeoutLoop (THV_FLOW_LOOP) phase starts
3 main:   FlowForceReassembly();           <- inject packets from flow engine
4 main:   TmThreadDisablePacketThreads();  <- then disable packet threads
5 main:   -> checks if 'worker' is ready processing packets
6 main:   -> sends THV_KILL to worker
7 worker: breaks out of TmThreadTimeoutLoop and changes to THV_RUNNING_DONE.

Part of the problem was with (5) above. When checking if the worker was
already done with its work, TmThreadDisablePacketThreads would not consider
the injected flow timeout packets. The second part of the problem was with (7),
where the worker checked if it was ready with the TmThreadTimeoutLoop in a
thread unsafe way.

As a result TmThreadDisablePacketThreads would not wait long enough for the
worker(s) to finish its work and move the threads to the THV_RUNNING_DONE
phase by issuing the THV_KILL command.

When waiting for packet processing threads to process all in-flight packets,
also consider the 'stream_pq'. This will have received the flow timeout
packets.

Bug #1871.

5 years agothreading: fix flow timeout loop race
Victor Julien [Fri, 8 Nov 2019 10:35:02 +0000 (11:35 +0100)] 
threading: fix flow timeout loop race

5 years agothreading: improve thread queues checking by dumping more info
Victor Julien [Sun, 3 Nov 2019 09:37:42 +0000 (10:37 +0100)] 
threading: improve thread queues checking by dumping more info

5 years agopacket: set unique pkt_src 'flush' packets
Victor Julien [Thu, 7 Nov 2019 07:57:20 +0000 (08:57 +0100)] 
packet: set unique pkt_src 'flush' packets

Set unique type for capture timeout and for detect reload flush
to assist in debugging.

5 years agostream: remove unused code
Victor Julien [Wed, 13 Nov 2019 09:38:46 +0000 (10:38 +0100)] 
stream: remove unused code

Remove now unused 'pkt_src' type as well.

Remove related unittests.

5 years agonfq: remove unused queue handler type
Victor Julien [Wed, 13 Nov 2019 09:53:36 +0000 (10:53 +0100)] 
nfq: remove unused queue handler type

5 years agolog-pcap: remove stale comments
Victor Julien [Sat, 9 Nov 2019 19:36:31 +0000 (20:36 +0100)] 
log-pcap: remove stale comments

5 years agoalert-syslog: remove stale comments
Victor Julien [Sat, 9 Nov 2019 19:35:39 +0000 (20:35 +0100)] 
alert-syslog: remove stale comments

5 years agoAdd general purpose `ARRAY_SIZE` macro
Jeff Lucovsky [Sun, 17 Nov 2019 20:09:11 +0000 (15:09 -0500)] 
Add general purpose `ARRAY_SIZE` macro

This commit adds `ARRAY_SIZE` as an helper for determining the number of
elements in an initialized array. The calculation is the same but the
macro provides a convenient shortcut. The implementation was borrowed
from the kernel sources.

5 years agodetect/analyzer: Refactor engine analysis code
Jeff Lucovsky [Tue, 3 Sep 2019 21:57:54 +0000 (17:57 -0400)] 
detect/analyzer: Refactor engine analysis code

This commit changes the analysis code to be table driven to better
identify the rule elements covered by the analysis.

5 years agosignature: Fixes memory leak in parsing app layer event
Philippe Antoine [Fri, 1 Nov 2019 08:23:06 +0000 (09:23 +0100)] 
signature: Fixes memory leak in parsing app layer event

5 years agodns: log addresses in flow direction, not packet 4375/head
Jason Ish [Mon, 18 Nov 2019 18:58:06 +0000 (12:58 -0600)] 
dns: log addresses in flow direction, not packet

Ticket #3340.
https://redmine.openinfosecfoundation.org/issues/3340

5 years agofilestore: don't assume flow is TCP 4345/head
Victor Julien [Thu, 24 Oct 2019 12:51:48 +0000 (14:51 +0200)] 
filestore: don't assume flow is TCP

Filestore can be used by UDP based protocols as well. NFSv2 is one
that Suricata supports.

Bug #3277.

5 years agodecode/pppoe: fix potential crash in debug statement
Victor Julien [Sun, 20 Oct 2019 05:50:32 +0000 (07:50 +0200)] 
decode/pppoe: fix potential crash in debug statement

5 years agoversion: starting work on 5.0.1
Victor Julien [Sat, 19 Oct 2019 08:12:44 +0000 (10:12 +0200)] 
version: starting work on 5.0.1

5 years agoversion: automate and cleanup ver handling
Victor Julien [Sat, 19 Oct 2019 08:10:28 +0000 (10:10 +0200)] 
version: automate and cleanup ver handling

Create a single function to return the version string, to avoid lots
of ifdefs in multiple places.

Make the version determine the 'release' status. If the version from
autoconf has '-dev' in the name, it is not a release. If it hasn't
it is considered a release version.

5 years agodataset: fix string length handling in hash 4337/head
Victor Julien [Wed, 30 Oct 2019 12:31:39 +0000 (13:31 +0100)] 
dataset: fix string length handling in hash

5 years agodataset: fix hash computation 4333/head
Eric Leblond [Tue, 29 Oct 2019 09:55:59 +0000 (10:55 +0100)] 
dataset: fix hash computation

5 years agonfq: clear memory of queue before using it 4321/head
Victor Julien [Fri, 18 Oct 2019 10:02:03 +0000 (12:02 +0200)] 
nfq: clear memory of queue before using it

Avoids using uninitialized memory. Show showed itself
in nonsense values in counters, and in nfq_handle_packet
errors that were likely the result of passing uninitialized
memory to the nfq API.

Bug 3263.
Bug 3120.

Fixes: b2a6c60dee83 ("source-nfq: increase maximum queues number to 65535")
5 years agonfq: micro optimization
Victor Julien [Fri, 18 Oct 2019 08:54:15 +0000 (10:54 +0200)] 
nfq: micro optimization

5 years agonfq: don't warn on 'handle_packet' error
Victor Julien [Fri, 18 Oct 2019 08:49:56 +0000 (10:49 +0200)] 
nfq: don't warn on 'handle_packet' error

NFQ can generate warnings/errors with a delay. After Suricata has
succesfully passed a verdict to the kernel, there are still things
that can go wrong for that verdict. This is then passed to the
queue through a netlink error message, which leads to nfq_handle_packet
returning an error code.

Suppress the warning. Also remove the errno/strerror use as
nfq_handle_packet does not set the errno.

Thanks to Florian Westphal.

Bug 3120.

5 years agonfq: code cleanups
Victor Julien [Fri, 18 Oct 2019 08:49:18 +0000 (10:49 +0200)] 
nfq: code cleanups

5 years agonfq: check for EAGAIN after recv() call in NFQRecvPkt()
Alexander Gozman [Tue, 3 Sep 2019 19:52:23 +0000 (22:52 +0300)] 
nfq: check for EAGAIN after recv() call in NFQRecvPkt()

5 years agonfq: minor code cleanups
Victor Julien [Fri, 18 Oct 2019 08:30:57 +0000 (10:30 +0200)] 
nfq: minor code cleanups

5 years agodatasets: suppress noisy debug statement
Victor Julien [Fri, 18 Oct 2019 08:10:32 +0000 (10:10 +0200)] 
datasets: suppress noisy debug statement

5 years agolog-pcap: don't print (null) for compression method
Victor Julien [Fri, 18 Oct 2019 08:08:18 +0000 (10:08 +0200)] 
log-pcap: don't print (null) for compression method

5 years agotcp: don't set event on empty SACK opt 4319/head
Victor Julien [Thu, 17 Oct 2019 13:42:15 +0000 (15:42 +0200)] 
tcp: don't set event on empty SACK opt

TCP_OPT_INVALID_LEN was set if the opt len was 2. While useless
an empty SACK is not uncommon.

Seen on an iOS device talking to an Apple server.

Bug #3254.

5 years agosuricata: use version from autoconf
Victor Julien [Mon, 14 Oct 2019 10:58:57 +0000 (12:58 +0200)] 
suricata: use version from autoconf

5 years agodoc/userguide: fix typo
Eric Leblond [Sat, 12 Oct 2019 15:39:54 +0000 (17:39 +0200)] 
doc/userguide: fix typo

5 years agodoc/userguide: fix base64 example
Eric Leblond [Sat, 12 Oct 2019 15:37:20 +0000 (17:37 +0200)] 
doc/userguide: fix base64 example

Add a sticky buffer example and fix the content modifier one.

5 years agodetect-base64: fix url in list keywords commands
Eric Leblond [Sat, 12 Oct 2019 15:33:32 +0000 (17:33 +0200)] 
detect-base64: fix url in list keywords commands

5 years agodoc: removal of disable-rust and path typo for suricatasc
Pascal Delalande [Wed, 16 Oct 2019 19:41:17 +0000 (21:41 +0200)] 
doc: removal of disable-rust and path typo for suricatasc

5 years agoeve/dns: don't log warning if dns log version not set
Jason Ish [Wed, 16 Oct 2019 15:03:14 +0000 (09:03 -0600)] 
eve/dns: don't log warning if dns log version not set

If the DNS log version is not set, we default to v2. This should
not be warning, but better logged at the config level.

A warning will still be logged if the value is set but is not
1 or 2.

5 years agosignature: leak fix in DetectAddressParse2
Philippe Antoine [Fri, 11 Oct 2019 08:11:56 +0000 (10:11 +0200)] 
signature: leak fix in DetectAddressParse2

5 years agoconfig: use logging instead of stderr
Philippe Antoine [Fri, 12 Jul 2019 09:17:59 +0000 (11:17 +0200)] 
config: use logging instead of stderr

5 years agompls: Allow MPLS after vlan.
Wesley van der Ree [Tue, 15 Oct 2019 13:08:58 +0000 (15:08 +0200)] 
mpls: Allow MPLS after vlan.

Fixes #2771

5 years agodns: minor cleanup
Victor Julien [Thu, 17 Oct 2019 05:51:01 +0000 (07:51 +0200)] 
dns: minor cleanup

5 years agoapp-layer: make dns,smb,tls parsers less noisy w/o config
Victor Julien [Thu, 17 Oct 2019 05:38:46 +0000 (07:38 +0200)] 
app-layer: make dns,smb,tls parsers less noisy w/o config

5 years agodetect/tls: set alternatives for legacy tls keywords
Victor Julien [Thu, 17 Oct 2019 05:28:33 +0000 (07:28 +0200)] 
detect/tls: set alternatives for legacy tls keywords

5 years agodetect/tls: tls.cert_fingerprint is a sticky buffer
Victor Julien [Thu, 17 Oct 2019 05:27:55 +0000 (07:27 +0200)] 
detect/tls: tls.cert_fingerprint is a sticky buffer

Not a content modifier.

5 years agodoc: fix version in install doc
Victor Julien [Tue, 15 Oct 2019 10:17:14 +0000 (12:17 +0200)] 
doc: fix version in install doc

5 years agodoc: add upgrade page 4308/head
Victor Julien [Mon, 7 Oct 2019 08:40:29 +0000 (10:40 +0200)] 
doc: add upgrade page

5 years agochangelog: update for 5.0.0 suricata-5.0.0
Victor Julien [Sun, 13 Oct 2019 08:26:30 +0000 (10:26 +0200)] 
changelog: update for 5.0.0

5 years agochangelog: update 5.0rc1 section with missing entries
Victor Julien [Sun, 13 Oct 2019 08:28:58 +0000 (10:28 +0200)] 
changelog: update 5.0rc1 section with missing entries

5 years agoautomake: use tar-ustar for longer filenames 4300/head
Jason Ish [Sat, 12 Oct 2019 14:37:38 +0000 (08:37 -0600)] 
automake: use tar-ustar for longer filenames

According to the automake manual it should be considered
portable these days.

https://www.gnu.org/software/automake/manual/html_node/List-of-Automake-options.html

Required for the dist generation with Rust vendoring.

5 years agodoc: document eve/dns v2 as the default
Jason Ish [Sat, 12 Oct 2019 16:02:19 +0000 (10:02 -0600)] 
doc: document eve/dns v2 as the default

Adds eve/dns v2 format documentation. Update legacy format
to require the version field.

5 years agosuricata.yaml/dns: small cleanups, not that default is v2
Jason Ish [Sat, 12 Oct 2019 15:59:46 +0000 (09:59 -0600)] 
suricata.yaml/dns: small cleanups, not that default is v2

Note that the eve dns log format is version 2 by default.

Make the value of commented out values their default.

Update the comment on the types to better reflect what it does.

5 years agomem: Use correct len with strlcpy
Jeff Lucovsky [Sat, 12 Oct 2019 14:35:53 +0000 (10:35 -0400)] 
mem: Use correct len with strlcpy

5 years agoconfigure.ac: fix static build with pcap 4299/head
Fabrice Fontaine [Fri, 11 Oct 2019 08:55:51 +0000 (10:55 +0200)] 
configure.ac: fix static build with pcap

pcap can depends on nl-3 so use pkg-config to find these dependencies
otherwise all AC_CHECK_LIB calls will fail when building statically

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
5 years agoMakefile: prefix suricata-update error with @
Jason Ish [Fri, 11 Oct 2019 17:11:27 +0000 (11:11 -0600)] 
Makefile: prefix suricata-update error with @

So only the echo output is displayed. Not the lines themselves.

5 years agosuricata-update: don't install if requirements not met
Jason Ish [Fri, 11 Oct 2019 17:11:05 +0000 (11:11 -0600)] 
suricata-update: don't install if requirements not met

Don't try to run suricata-update if its not installed.

The 'make install-rules' target would try to run suricata-update
when it was detected that it was bundled, but didn't consider
if suricata-update was actually installed.

5 years agostream: fix progress for min_inspect_depth 4295/head
Victor Julien [Fri, 11 Oct 2019 12:25:10 +0000 (14:25 +0200)] 
stream: fix progress for min_inspect_depth

Make sure progress don't exceed raw_progress.

5 years agosmtp: implement min_inspect_depth logic
Victor Julien [Fri, 11 Oct 2019 10:47:29 +0000 (12:47 +0200)] 
smtp: implement min_inspect_depth logic

Implement min_inspect_depth for SMTP so that file_data and
regular stream matches don't go out of sync on the stream start.

Added toserver bytes tracking.

Bug #3190.

5 years agodebug: make it easier to trace flush logic
Victor Julien [Fri, 11 Oct 2019 10:47:10 +0000 (12:47 +0200)] 
debug: make it easier to trace flush logic

5 years agoconfigure: don't print ERROR if we don't exit
Victor Julien [Fri, 11 Oct 2019 10:32:09 +0000 (12:32 +0200)] 
configure: don't print ERROR if we don't exit

5 years agoeve/dhcp: remove leftover template comments
Victor Julien [Fri, 11 Oct 2019 10:24:23 +0000 (12:24 +0200)] 
eve/dhcp: remove leftover template comments

5 years agoeve/alert: clean up proto metadata
Victor Julien [Fri, 11 Oct 2019 10:23:05 +0000 (12:23 +0200)] 
eve/alert: clean up proto metadata

Use a switch statement to select the protocol specific function.

5 years agodns: rename rust files and funcs
Victor Julien [Fri, 11 Oct 2019 10:17:27 +0000 (12:17 +0200)] 
dns: rename rust files and funcs

5 years agojansson: remove explicit <jansson.h> includes
Victor Julien [Fri, 11 Oct 2019 10:10:23 +0000 (12:10 +0200)] 
jansson: remove explicit <jansson.h> includes

Header is included from suricata-common.h

5 years agojansson: remove HAVE_LIBJANSSON guards
Victor Julien [Fri, 11 Oct 2019 10:06:59 +0000 (12:06 +0200)] 
jansson: remove HAVE_LIBJANSSON guards

5 years agorust: remove build system HAVE_RUST guards
Victor Julien [Fri, 11 Oct 2019 09:21:41 +0000 (11:21 +0200)] 
rust: remove build system HAVE_RUST guards

5 years agorust: remove all HAVE_RUST guards
Victor Julien [Fri, 11 Oct 2019 09:19:14 +0000 (11:19 +0200)] 
rust: remove all HAVE_RUST guards

5 years agohttp: updates suricata.yaml comments
Philippe Antoine [Tue, 1 Oct 2019 12:19:35 +0000 (14:19 +0200)] 
http: updates suricata.yaml comments

As well as the userguide documentation about suricata.yaml

5 years agoconfigure: fix python major version check on python 2.6 4292/head
Jason Ish [Thu, 10 Oct 2019 22:32:21 +0000 (16:32 -0600)] 
configure: fix python major version check on python 2.6

Python 2.6 doesn't use a named tuple for the version info,
instead use the index of the major version which works
on Python 2.6 upwards.

5 years agorust: run tests with same features as build
Jason Ish [Wed, 9 Oct 2019 15:18:31 +0000 (09:18 -0600)] 
rust: run tests with same features as build

Cargo check wasn't being passed --features so could have a different
configuration than the build.

5 years agorustup: handle rustup for sudo and su
Jason Ish [Wed, 9 Oct 2019 07:05:24 +0000 (01:05 -0600)] 
rustup: handle rustup for sudo and su

If rustup is in use, and a user uses sudo or su for the make
install, the install may fail with a "no default toolchain"
error.

To prevent this, detect at configure if rustup is being used,
then set RUSTUP_HOME for all calls to cargo.

5 years agopython: fixes for installing from path with spaces
Jason Ish [Sun, 22 Sep 2019 22:11:55 +0000 (16:11 -0600)] 
python: fixes for installing from path with spaces

Related to Redmine issue:
https://redmine.openinfosecfoundation.org/issues/2668

5 years agorust: fix build when source directory has spaces in it
Jason Ish [Fri, 20 Sep 2019 21:58:53 +0000 (15:58 -0600)] 
rust: fix build when source directory has spaces in it

Redmine issue:
https://redmine.openinfosecfoundation.org/issues/2668

5 years agoconfigure: no, followed by reason for python tools 4290/head
Jason Ish [Wed, 9 Oct 2019 05:50:34 +0000 (23:50 -0600)] 
configure: no, followed by reason for python tools

This:
  Install suricatactl:                     no, requires distutils
instead of this:
  Install suricatasc:                      requires distutils

5 years agoconfigure: generic instructions for missing python modules
Jason Ish [Wed, 9 Oct 2019 05:33:24 +0000 (23:33 -0600)] 
configure: generic instructions for missing python modules

Instead of telling the user what packages to install for missing
Python modules, give generic instructions about what module
needs to be installed.

It is getting tricky to get these package names correct
across distributions.

5 years agosuricata-update: build before install
Jason Ish [Tue, 8 Oct 2019 21:34:26 +0000 (15:34 -0600)] 
suricata-update: build before install

Run the Python build independent of install. Prevents files
in the tree becoming owned by root.

5 years agoconfigure: detect python major version
Jason Ish [Wed, 9 Oct 2019 04:56:35 +0000 (22:56 -0600)] 
configure: detect python major version

For informational purposes only when notifying what Python
modules are required during ./configure.

5 years agoconfigure: don't detect python version
Jason Ish [Tue, 8 Oct 2019 15:43:12 +0000 (09:43 -0600)] 
configure: don't detect python version

Don't detect the Python version, it is not needed anyways,
all we need is the Python path.

Also, python2 --version prints to stderr, while python3
prints to stdout, leading to some odd output during
./configure (but fixable).

5 years agodoc: cleanup enging logging
Jason Ish [Thu, 3 Oct 2019 15:29:14 +0000 (09:29 -0600)] 
doc: cleanup enging logging

Attempt cleanup the engine logging a bit.

Also a include a verbatim excerpt of the default configuration
here for reference purposes.

5 years agodoc: -v verbose option documentation update
Jason Ish [Wed, 2 Oct 2019 22:49:50 +0000 (16:49 -0600)] 
doc: -v verbose option documentation update

Update -v documentation to reflect the new behaviour discussed
in bug #1851 where -v changes the log level to fixed levels
instead of an offset of the default log level configured
in suricata.yaml.

5 years agohelp: better description for -v
Jason Ish [Wed, 2 Oct 2019 22:45:31 +0000 (16:45 -0600)] 
help: better description for -v

-v: be more verbose (use multiple times to increase verbosity)

5 years agologging: used fixed levels of verbosity for -v, -vv...
Jason Ish [Wed, 2 Oct 2019 22:38:50 +0000 (16:38 -0600)] 
logging: used fixed levels of verbosity for -v, -vv...

Change the meaning of the verbosity flag to change the log
level to fixed levels instead of being relative to whats
configured.

-v    => INFO
-vv   => PERF
-vvv  => CONIFG
-vvvv => DEBUG

But do now allow -v to decrease the verbosity.

Bug #1851

5 years agologging: respect individual log levels
Jason Ish [Wed, 2 Oct 2019 22:23:05 +0000 (16:23 -0600)] 
logging: respect individual log levels

The log level of individual loggers (console, file, syslog) was
being capped by the default log level. For example, if the
default log level was notice, setting the file level to info
would still result in notice level logging.

Bug #3210

5 years agoapp-layer: remove obsolete msn protocol detection
Konstantin Klinger [Fri, 4 Oct 2019 13:46:15 +0000 (15:46 +0200)] 
app-layer: remove obsolete msn protocol detection

5 years agodatasets: make clear the feature is experimental
Victor Julien [Thu, 10 Oct 2019 05:39:12 +0000 (07:39 +0200)] 
datasets: make clear the feature is experimental

5 years agoeve/anomaly: enable by default
Victor Julien [Wed, 9 Oct 2019 15:37:08 +0000 (17:37 +0200)] 
eve/anomaly: enable by default

Default config will only enable 'app-layer' type within the anomaly
logger.

5 years agohtp: require 0.5.31
Victor Julien [Wed, 9 Oct 2019 15:35:02 +0000 (17:35 +0200)] 
htp: require 0.5.31

5 years agoyaml: minor improvements
Victor Julien [Wed, 9 Oct 2019 15:12:00 +0000 (17:12 +0200)] 
yaml: minor improvements

5 years agoyaml: clean up 'autofp-scheduler' option
Victor Julien [Wed, 9 Oct 2019 15:01:50 +0000 (17:01 +0200)] 
yaml: clean up 'autofp-scheduler' option

5 years agolog/anomaly: remove leading underscore from static var
Jeff Lucovsky [Sat, 5 Oct 2019 13:57:18 +0000 (09:57 -0400)] 
log/anomaly: remove leading underscore from static var

5 years agodoc/eve.alert: Expand metadata description
Jeff Lucovsky [Sat, 28 Sep 2019 13:02:18 +0000 (09:02 -0400)] 
doc/eve.alert: Expand metadata description