mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 14:54:56 +01:00
Explicitly sandbox Lua instances (3/4)
This allows UI scripts (saved in preferences) to access os.* functions (non-sandboxed), while preventing other scripts to do so. Lua scripts that can run os commands can execute arbitrary code on the system. While this is a nice feature, it can be equally dangerous.
This commit is contained in:
parent
6b3f25eb2a
commit
c1be897eed
9 changed files with 46 additions and 40 deletions
|
|
@ -1869,6 +1869,7 @@ ProcessorEntry::PluginInlineDisplay::display_frame (cairo_t* cr, double w, doubl
|
|||
ProcessorEntry::LuaPluginDisplay::LuaPluginDisplay (ProcessorEntry& e, std::shared_ptr<ARDOUR::LuaProc> p, uint32_t max_height)
|
||||
: PluginInlineDisplay (e, p, max_height)
|
||||
, _luaproc (p)
|
||||
, lua_gui (true, true)
|
||||
, _lua_render_inline (0)
|
||||
{
|
||||
p->setup_lua_inline_gui (&lua_gui);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue