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

lua: remove default search path for output modules - v2 #12576

Closed
wants to merge 4 commits into from

Conversation

jasonish
Copy link
Member

@jasonish jasonish commented Feb 13, 2025

Changes from last PR:

  • rebase
  • fix scan-build error

Removes the search path for Lua modules. It now must be set in the
configuration file. This provides a consistent starting point for all installs
of Suricata.

As we no longer use the system provided Lua, we can't provide a sane default
for every installation environment.

Ticket: https://redmine.openinfosecfoundation.org/issues/7169

It had a rather generic name of "path", which in Lua usually means a
search path, which we'll be adding.
By default, use an empty search path. This gives us a predictable
default. If a user needs access to external modules, the search path
must be set in the configuration file.

Ticket: OISF#7169
- Sandboxed Lua for rules
- Search path changes for Lua output scripts
Copy link

codecov bot commented Feb 13, 2025

Codecov Report

Attention: Patch coverage is 86.20690% with 4 lines in your changes missing coverage. Please review.

Project coverage is 80.73%. Comparing base (3831843) to head (53ba715).
Report is 9 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #12576   +/-   ##
=======================================
  Coverage   80.72%   80.73%           
=======================================
  Files         929      929           
  Lines      259062   259083   +21     
=======================================
+ Hits       209119   209159   +40     
+ Misses      49943    49924   -19     
Flag Coverage Δ
fuzzcorpus 56.95% <0.00%> (+<0.01%) ⬆️
livemode 19.39% <0.00%> (-0.01%) ⬇️
pcap 44.19% <0.00%> (+<0.01%) ⬆️
suricata-verify 63.41% <86.20%> (+0.02%) ⬆️
unittests 58.35% <0.00%> (-0.01%) ⬇️

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

@suricata-qa
Copy link

Information: QA ran without warnings.

Pipeline 24719

@victorjulien victorjulien added this to the 8.0 milestone Feb 14, 2025
@victorjulien
Copy link
Member

Merged in #12581, thanks!

@jasonish jasonish deleted the lua-path/v2 branch February 14, 2025 17:09
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.

3 participants