sandbox-libs

command
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 5, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Example sandbox-libs shows controlling which Lua standard libraries a script can reach via Config.Libs. The default set (base/table/string/math/utf8/ coroutine) omits os/io/package/debug and removes load/loadfile/dofile, so an untrusted script cannot touch the host or run arbitrary code. Opting a library in (here os) is explicit and per-Runtime.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL