From 0f1f8e4a0fed72f0f2223448f34406eeb26f9b7b Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Sat, 20 Jun 2020 13:21:38 +0100 Subject: [PATCH] Add warning when disabling secure.enable_security (#9943) --- src/script/scripting_server.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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"); -- 2.25.1