]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
doc/userguide: upgrade notes for Lua 12581/head
authorJason Ish <jason.ish@oisf.net>
Tue, 11 Feb 2025 22:37:54 +0000 (16:37 -0600)
committerVictor Julien <victor@inliniac.net>
Fri, 14 Feb 2025 06:44:42 +0000 (07:44 +0100)
- Sandboxed Lua for rules
- Search path changes for Lua output scripts

doc/userguide/output/lua-output.rst
doc/userguide/upgrade.rst

index ab520e1aaa247824266845043733377d7794aec0..9401d94e5e21a553674128b42de5767890b426ff 100644 (file)
@@ -75,6 +75,8 @@ Example:
       file:close(file)
   end
 
+.. _lua-output-yaml:
+
 YAML
 ----
 
@@ -87,6 +89,15 @@ scripts like so:
     - lua:
         enabled: yes
         scripts-dir: /etc/suricata/lua-output/
+
+        # By default the Lua module search paths are empty. If you plan
+        # to use external modules these paths will need to be set. The
+        # examples below are likely suitable for finding modules
+        # installed with a package manager on a 64 bit Linux system, but
+        # may need tweaking.
+        #path: "/usr/share/lua/5.4/?.lua;/usr/share/lua/5.4/?/init.lua;/usr/lib64/lua/5.4/?.lua;/usr/lib64/lua/5.4/?/init.lua;./?.lua;./?/init.lua"
+        #cpath: "/usr/lib64/lua/5.4/?.so;/usr/lib64/lua/5.4/loadall.so;./?.so"
+
         scripts:
           - tcp-data.lua
           - flow.lua
index f5df98100fbac2f9508d2bb236d8cbfca5eb056a..282c5a0cf1de4b476f1fe4d4feab962e6c97f409 100644 (file)
@@ -89,6 +89,12 @@ Major changes
   Suricata 8.0, ``stream.checksum-validation`` no longer affects the checksum rule keywords.
   E.g., ``ipv4-csum: valid`` will only match if the check sum is valid, even when engine
   checksum validations are disabled.
+- Lua detection scripts (rules) now run in a sandboxed
+  environment. See :ref:`lua-detection`.
+- Lua output scripts have no default module search path, a search path
+  will need to be set before external modules can be loaded. See the
+  new default configuration file or :ref:`lua-output-yaml` for more
+  details.
 
 Removals
 ~~~~~~~~