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: always available, vendored and sandboxed - v9 #11121

Closed
wants to merge 15 commits into from

Conversation

jasonish
Copy link
Member

Rebase of #10998 with all comments addressed:

  • style fixups
  • --disable-lua gone

Mainly pushing for QA. I have pending:

  • allowlist for function instead of denylist
  • replacement function for denied functions to up a stat
  • tests

J0eJ0h and others added 15 commits May 22, 2024 10:39
github-ci: Disable lua on debian 10 as it doesn't have Lua 5.4.

Ticket: OISF#4776
lua 5.4 support is not available in luajit

Ticket: OISF#4776
Ticket: OISF#4776

[Edits by Jason Ish]
- Add Lua in CI where needed
- Disable Lua for builds that don't have Lua 5.4
Including:
- rename guards
- SCMalloc to SCCalloc
- remove unused enum
- rename public functions to our naming standard
Remove lua-dev(el) from all CI tests.
Now that we're fixed to Lua 5.4, the integer size is always 8.
Its always built-in. However, can be disabled at runtime.
Modify the CentOS 9 Stream build to not have cbdingen available, as
its already building from the dist.  But add a "make clean" followed
by a "make" to test that it still builds after a clean.
The vendored Lua code triggers some scan-build failures, so exclude
the rust/ directory for now. Might want to look at these separately
though.
Remove maintainer-clean-local, this is not needed.

In distclean-local, remove "rust/dist" and "rust/vendor" as they are
created during "make dist".

In "clean-local", remove "rust/target" and "rust/gen" as they are
created during a normal "make".
Copy link

NOTE: This PR may contain new authors.

Copy link

codecov bot commented May 22, 2024

Codecov Report

Attention: Patch coverage is 61.97183% with 54 lines in your changes are missing coverage. Please review.

Project coverage is 82.74%. Comparing base (0aaec69) to head (01ce6c1).

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #11121      +/-   ##
==========================================
- Coverage   84.10%   82.74%   -1.36%     
==========================================
  Files         926      942      +16     
  Lines      250712   258085    +7373     
==========================================
+ Hits       210858   213558    +2700     
- Misses      39854    44527    +4673     
Flag Coverage Δ
fuzzcorpus 61.38% <0.70%> (-2.81%) ⬇️
livemode 18.73% <0.70%> (-0.84%) ⬇️
pcap 44.49% <0.70%> (-2.01%) ⬇️
suricata-verify 61.11% <58.45%> (-1.72%) ⬇️
unittests 61.12% <58.45%> (-1.08%) ⬇️

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

@ct0br0
Copy link

ct0br0 commented May 23, 2024

qa tokens ran out. ignore the 'pipeline canceled' incoming

@suricata-qa
Copy link

ERROR:

ERROR: QA failed on build_fetch.

Pipeline 20786

@jasonish jasonish closed this May 29, 2024
@jasonish jasonish deleted the lua-vendored-sandbox/v9 branch May 29, 2024 15:12
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.

4 participants