Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

next/233/20231219/v1 #10076

Merged
merged 9 commits into from
Dec 19, 2023
Merged

Conversation

catenacyber and others added 9 commits December 19, 2023 09:51
Even when on detection-only mode.
So that we always have enip_tcp and enip_udp in stats
and never just `enip`.

Ticket: 6304
./stats/app_layer/error/modbus
The `ConsolidatedDataRow` struct had a `length` field that wasn't truly
used.

Related to
Bug OISF#6389
As the feature module is not available for Rust unit tests, a mock
version is also provided.
Add a new rule keyword "requires" that allows a rule to require specific
Suricata versions and/or Suricata features to be enabled.

Example:

  requires: feature geoip, version >= 7.0.0, version < 8;
  requires: version >= 7.0.3 < 8
  requires: version >= 7.0.3 < 8 | >= 8.0.3

Feature: OISF#5972

Co-authored-by: Philippe Antoine <[email protected]>
Add a "pre-scan" rule parse that will check for requires statement. It
will return a special error code (-4) if the requires fails due to
missing requirements.

Syntactic errors will also abort parsing here.

Feature: OISF#5972
During the pre-scan for "requires", also parse the SID if possible. If
the rule fails high level parsing (syntax), the SID will not be
parsed.

But every keyword other than "sid" and "requires" should expect to be
provided with a parsed sid.
Copy link

codecov bot commented Dec 19, 2023

Codecov Report

Merging #10076 (5cc872f) into master (467c3f2) will decrease coverage by 0.21%.
The diff coverage is 90.39%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #10076      +/-   ##
==========================================
- Coverage   82.39%   82.19%   -0.21%     
==========================================
  Files         972      975       +3     
  Lines      271406   271940     +534     
==========================================
- Hits       223624   223517     -107     
- Misses      47782    48423     +641     
Flag Coverage Δ
fuzzcorpus 62.92% <18.96%> (-1.23%) ⬇️
suricata-verify 61.41% <80.73%> (+0.02%) ⬆️
unittests 62.84% <69.21%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Copy link
Contributor

@catenacyber catenacyber left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks consistent with the mentioned PRs

@suricata-qa
Copy link

Information: QA ran without warnings.

Pipeline 17145

@victorjulien victorjulien merged commit 5cc872f into OISF:master Dec 19, 2023
45 checks passed
@victorjulien victorjulien deleted the next/233/20231219/v1 branch December 19, 2023 18:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

5 participants