diff options
author | sfan5 <sfan5@live.de> | 2016-12-21 14:04:46 +0100 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2016-12-21 14:13:10 +0100 |
commit | 09f1a0c1ff8b5d73443603d85fccc3eb25cf4650 (patch) | |
tree | 06cc287de1bf5e1b55101bbe4b732a976a792966 | |
parent | cc7c31a5bc44ab0010997e86c0a8c9f5f832b398 (diff) | |
download | minetest-09f1a0c1ff8b5d73443603d85fccc3eb25cf4650.tar.gz minetest-09f1a0c1ff8b5d73443603d85fccc3eb25cf4650.tar.bz2 minetest-09f1a0c1ff8b5d73443603d85fccc3eb25cf4650.zip |
Disable mod security by default (closes #4944)
-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 f0ddd5bc0..1818b5a18 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 true +secure.enable_security (Enable mod security) bool false # 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 6c7d1e66b..867d98584 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 = true +# secure.enable_security = false # 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 60a34cf63..0b4be6322 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", "true"); + settings->setDefault("secure.enable_security", "false"); settings->setDefault("secure.trusted_mods", ""); settings->setDefault("secure.http_mods", ""); |