Project

General

Profile

Actions

Bug #6940

closed

Feature #4775: lua: overhaul lua support

lua: handle errors in lua rules

Added by Jason Ish 7 months ago. Updated 5 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

Also available in: Atom PDF