mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
[CSM] Improve security for client-sided mods (#5100)
This commit is contained in:
parent
92b45b2a18
commit
a50d07d39a
6 changed files with 172 additions and 30 deletions
|
@ -41,8 +41,10 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||
class ScriptApiSecurity : virtual public ScriptApiBase
|
||||
{
|
||||
public:
|
||||
int backupGlobals(lua_State *L);
|
||||
// Sets up security on the ScriptApi's Lua state
|
||||
void initializeSecurity();
|
||||
void initializeSecurityClient();
|
||||
// Checks if the Lua state has been secured
|
||||
static bool isSecure(lua_State *L);
|
||||
// Loads a file as Lua code safely (doesn't allow bytecode).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue