Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Enable mod security by default
  • Loading branch information
ShadowNinja committed Jan 13, 2017
1 parent 25ba96f commit 7ae7f1e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion builtin/settingtypes.txt
Expand Up @@ -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()).
Expand Down
2 changes: 1 addition & 1 deletion minetest.conf.example
Expand Up @@ -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()).
Expand Down
2 changes: 1 addition & 1 deletion src/defaultsettings.cpp
Expand Up @@ -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", "");

Expand Down

0 comments on commit 7ae7f1e

Please sign in to comment.