From: rubenwardy Date: Sat, 20 Jun 2020 12:21:38 +0000 (+0100) Subject: Add warning when disabling secure.enable_security (#9943) X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=0f1f8e4a0fed72f0f2223448f34406eeb26f9b7b;p=oweals%2Fminetest.git Add warning when disabling secure.enable_security (#9943) --- diff --git a/src/script/scripting_server.cpp b/src/script/scripting_server.cpp index cbf229640..85411ded4 100644 --- a/src/script/scripting_server.cpp +++ b/src/script/scripting_server.cpp @@ -62,6 +62,10 @@ ServerScripting::ServerScripting(Server* server): if (g_settings->getBool("secure.enable_security")) { initializeSecurity(); + } else { + warningstream << "\\!/ Mod security should never be disabled, as it allows any mod to " + << "access the host machine." + << "Mods should use minetest.request_insecure_environment() instead \\!/" << std::endl; } lua_getglobal(L, "core");