Project

General

Profile

Actions

Bug #6940

closed

Feature #4775: lua: overhaul lua support

lua: handle errors in lua rules

Added by Jason Ish 9 months ago. Updated 6 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Affected Versions:
Effort:
Difficulty:
Label:

Description

When a Lua rule errors out, instead of return 0 or 1, the error is considered falsely and will trigger a lua:!script.lua, which seems wrong. Lua rules should only be considered not match on a return value of 0. If possible, other errors should be detected and increment a counter, or some "engine" level event that is rate limited.


Related issues 1 (1 open0 closed)

Blocks Suricata - Story #7128: lua: sandboxed lua support with mimimum set of bindingsNewVictor JulienActions
Actions #1

Updated by Jason Ish 8 months ago

  • Tracker changed from Feature to Bug
Actions #2

Updated by Jason Ish 8 months ago

  • Status changed from New to In Progress
Actions #3

Updated by Jason Ish 6 months ago

  • Status changed from In Progress to Closed

Fixed with 224f55ba21f443fe0efa3b1d032b11cdf658b5ff.

Actions #4

Updated by Victor Julien 6 months ago

  • Assignee changed from OISF Dev to Jason Ish
Actions #5

Updated by Victor Julien 6 months ago

  • Blocks Story #7128: lua: sandboxed lua support with mimimum set of bindings added
Actions

Also available in: Atom PDF