diff options
author | ShadowNinja <shadowninja@minetest.net> | 2016-10-09 14:36:22 -0400 |
---|---|---|
committer | ShadowNinja <shadowninja@minetest.net> | 2017-01-13 14:08:24 -0500 |
commit | 7ae7f1ea4cbbda7d7849a1240ce30d867e850bfb (patch) | |
tree | d860aeabc374768ef4cc888ca4639ecde2f5475b | |
parent | 25ba96fcac9fce7bfa9dd6e9c2c3e96e2d5e147e (diff) | |
download | minetest-7ae7f1ea4cbbda7d7849a1240ce30d867e850bfb.tar.gz minetest-7ae7f1ea4cbbda7d7849a1240ce30d867e850bfb.tar.bz2 minetest-7ae7f1ea4cbbda7d7849a1240ce30d867e850bfb.zip |
Enable mod security by default
-rw-r--r-- | builtin/settingtypes.txt | 2 | ||||
-rw-r--r-- | minetest.conf.example | 2 | ||||
-rw-r--r-- | src/defaultsettings.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/builtin/settingtypes.txt b/builtin/settingtypes.txt index 8668e1472..779224be4 100644 --- a/builtin/settingtypes.txt +++ b/builtin/settingtypes.txt @@ -1186,7 +1186,7 @@ mgvalleys_np_inter_valley_slope (Valley Slope) noise_params 0.5, 0.5, (128, 128, [*Security] # Prevent mods from doing insecure things like running shell commands. -secure.enable_security (Enable mod security) bool false +secure.enable_security (Enable mod security) bool true # Comma-separated list of trusted mods that are allowed to access insecure # functions even when mod security is on (via request_insecure_environment()). diff --git a/minetest.conf.example b/minetest.conf.example index bf70f5e51..13b2dc7a7 100644 --- a/minetest.conf.example +++ b/minetest.conf.example @@ -1530,7 +1530,7 @@ # Prevent mods from doing insecure things like running shell commands. # type: bool -# secure.enable_security = false +# secure.enable_security = true # Comma-separated list of trusted mods that are allowed to access insecure # functions even when mod security is on (via request_insecure_environment()). diff --git a/src/defaultsettings.cpp b/src/defaultsettings.cpp index 52f4cfec8..1096b8904 100644 --- a/src/defaultsettings.cpp +++ b/src/defaultsettings.cpp @@ -303,7 +303,7 @@ void set_default_settings(Settings *settings) settings->setDefault("emergequeue_limit_diskonly", "32"); settings->setDefault("emergequeue_limit_generate", "32"); settings->setDefault("num_emerge_threads", "1"); - settings->setDefault("secure.enable_security", "false"); + settings->setDefault("secure.enable_security", "true"); settings->setDefault("secure.trusted_mods", ""); settings->setDefault("secure.http_mods", ""); |