summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
2c533eb)
Debugging mode is intended to enable administrative commands which
are especially unsafe and could even be used to run arbitrary shell
commands or alter files accessible to the user under which the
service runs. Log a warning about it at startup if the option has
been set, and insert some comments to that effect in the sample
configuration so that hopefully no one will turn it on without due
forethought. Also add a mention about its risks in the config doc.
bool, optional
Whether unsafe debugging functionality is enabled. If unspecified or
bool, optional
Whether unsafe debugging functionality is enabled. If unspecified or
-set to false, unsafe debugging functions will be disabled.
+set to false, unsafe debugging functions will be disabled. Be very
+careful enabling this feature, as debugging commands may allow service
+administrators to run arbitrary shell commands or modify files
+accessible to the system user underwhich the service is running.
- admin
.mudpy.limit.avatars: 7
# .mudpy.limit.backups: 10
- admin
.mudpy.limit.avatars: 7
# .mudpy.limit.backups: 10
+# Debugging commands are dangerous, and may result in granting
+# administrative users access to the system account under which the
+# service runs. Be very sure you trust your admins before enabling!
# .mudpy.limit.debug: true
.mudpy.limit.password_tries: 3
# .mudpy.limit.debug: true
.mudpy.limit.password_tries: 3
log("Running version: %s" % universe.versions.version, 1)
log("Initial directory: %s" % universe.startdir, 1)
log("Command line: %s" % " ".join(sys.argv), 1)
log("Running version: %s" % universe.versions.version, 1)
log("Initial directory: %s" % universe.startdir, 1)
log("Command line: %s" % " ".join(sys.argv), 1)
+ if universe.debug_mode():
+ log("WARNING: Unsafe debugging mode is enabled!", 6)
# pass the initialized universe back
return universe
# pass the initialized universe back
return universe
- admin
.mudpy.limit.avatars: 7
.mudpy.limit.backups: 3
- admin
.mudpy.limit.avatars: 7
.mudpy.limit.backups: 3
+# Debugging commands are dangerous, and may result in granting
+# administrative users access to the system account under which the
+# service runs. Be very sure you trust your admins before enabling!
# .mudpy.limit.debug: true
.mudpy.limit.password_tries: 3
# .mudpy.limit.debug: true
.mudpy.limit.password_tries: 3