mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2026-05-08 12:48:03 +02:00
docs: fix sandbox documentation to reflect changes
This commit is contained in:
parent
b29b313e7b
commit
b216594497
1 changed files with 4 additions and 4 deletions
|
|
@ -37,15 +37,15 @@ In this environment, the following rules apply:
|
|||
``string.format = rogue_format`` is valid outside the sandbox.
|
||||
WirePlumber does not allow that.
|
||||
|
||||
- The standard Lua API is limited only to safe functions. Functions that
|
||||
interact with the file system, the lua modules system, the lua state,
|
||||
the process's state, etc are **not** allowed.
|
||||
- The standard Lua API is limited to a subset of safe functions. For instance,
|
||||
functions that interact with the file system (io.*) and the process's state
|
||||
(ex.: os.exit) are **not** allowed.
|
||||
|
||||
Here is a full list of Lua functions (and API tables) that are exposed:
|
||||
|
||||
.. literalinclude:: ../../../modules/module-lua-scripting/wplua/sandbox.lua
|
||||
:language: lua
|
||||
:lines: 40-55
|
||||
:lines: 27-30
|
||||
|
||||
- Object methods are not exposed in public tables. To call an object method
|
||||
you must use the method call syntax of Lua, i.e. ``object:method(params)``
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue