Skip to content

next/1406/80x/20260623/v1 - #15709

Merged
victorjulien merged 5 commits into
OISF:main-8.0.xfrom
victorjulien:next/1406/80x/20260623/v1
Jun 23, 2026
Merged

next/1406/80x/20260623/v1#15709
victorjulien merged 5 commits into
OISF:main-8.0.xfrom
victorjulien:next/1406/80x/20260623/v1

Conversation

@victorjulien

Copy link
Copy Markdown
Member

catenacyber and others added 5 commits June 21, 2026 21:04
Ticket: 8634
(cherry picked from commit 097975e)
Reading a pcap from /dev/stdin or a named pipe currently fails with "failed to get first packet timestamp. pcap_next_ex(): -1" because InitPcapFile calls setvbuf on the FILE* underlying the pcap handle after libpcap has already consumed the pcap header. On a non-seekable fd glibc cannot recover from that and the next read returns -1.

Detect non-regular files via fstat and skip setvbuf in that case so the read keeps working on pipes, fifos and stdin.

Accept pcap-file.buffer-size values of 0, which disables setvbuf buffering as an explicit opt-out, or PCAP_FILE_BUFFER_SIZE_MIN (4 KiB) to PCAP_FILE_BUFFER_SIZE_MAX (64 MiB). Treat any non-zero setvbuf return value as an error, not just negative values.

When pcap-file.buffer-size fails to parse, retain the default buffer size instead of falling through and setting it to 0. The branches are now mutually exclusive so only one of the parse-error, accepted, or out-of-range messages is logged.

Update the user guide: --pcap-file-buffer-size now documents valid values of 0 (disables setvbuf buffering) or 4 KiB to 64 MiB, and pcap-file.rst notes that 0 is the opt-out for non-seekable sources such as stdin and named pipes.
Bug: OISF#8464.

(cherry picked from commit 565e138)
In FTP, the first transaction is a banner from the server. Skip TS
inspection on this transaction.

Allows firewall mode to get past this transaction and onto the next.

Ticket: OISF#8662
(cherry picked from commit d346e46)
The ftpdata_command would never match a RETR in the to_server direction,
or a STOR in the to_client direction, this effectively makes the
ftpdata_command applicable to passive mode only.

Instead, remove the directionality on the ftpdata_command. Its "meta"
information passed from the control channel and isn't really
directional. I think the idea was to abstract away active/passive from
the rule writer, but unfortunately doesn't allow the ftpdata_command
keyword to work in the more strict firewll mode.

Ticket: OISF#8663
(cherry picked from commit 2fe4bb2)
@codecov

codecov Bot commented Jun 23, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 63.82979% with 17 lines in your changes missing coverage. Please review.
✅ Project coverage is 81.64%. Comparing base (2b924d4) to head (f2ef8e0).
⚠️ Report is 5 commits behind head on main-8.0.x.

Additional details and impacted files
@@              Coverage Diff               @@
##           main-8.0.x   #15709      +/-   ##
==============================================
- Coverage       81.65%   81.64%   -0.02%     
==============================================
  Files            1016     1016              
  Lines          276653   276685      +32     
==============================================
- Hits           225890   225887       -3     
- Misses          50763    50798      +35     
Flag Coverage Δ
fuzzcorpus 63.80% <40.42%> (-0.01%) ⬇️
livemode 18.65% <0.00%> (-0.15%) ⬇️
netns 20.17% <0.00%> (+<0.01%) ⬆️
pcap 44.40% <24.32%> (+<0.01%) ⬆️
suricata-verify 65.09% <54.05%> (-0.02%) ⬇️
unittests 58.60% <0.00%> (-0.01%) ⬇️

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@suricata-qa

Copy link
Copy Markdown

Information: QA ran without warnings.

Pipeline = 32227

@catenacyber catenacyber left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Good staging

Good SV

Green CI + QA

@victorjulien
victorjulien merged commit f2ef8e0 into OISF:main-8.0.x Jun 23, 2026
61 checks passed
@victorjulien
victorjulien deleted the next/1406/80x/20260623/v1 branch June 23, 2026 13:59
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