瀏覽代碼

fix: restricted_shell not working

Zhongwen Deng 3 年之前
父節點
當前提交
3675ba0c9f
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      apps/emqx/etc/vm.args.cloud

+ 5 - 0
apps/emqx/etc/vm.args.cloud

@@ -35,6 +35,11 @@
 ## (Disabled by default..use with caution!)
 ## (Disabled by default..use with caution!)
 #-heart
 #-heart
 
 
+## The shell is started in a restricted mode.
+## In this mode, the shell evaluates a function call only if allowed.
+## Prevent user from accidentally calling a function from the prompt that could harm a running system.
+-stdlib restricted_shell emqx_restricted_shell
+
 ## Specifies the net_kernel tick time in seconds.
 ## Specifies the net_kernel tick time in seconds.
 ## This is the approximate time a connected node may be unresponsive until
 ## This is the approximate time a connected node may be unresponsive until
 ## it is considered down and thereby disconnected.
 ## it is considered down and thereby disconnected.