Просмотр исходного кода

fix: restricted_shell not working

Zhongwen Deng 3 лет назад
Родитель
Сommit
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!)
 #-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.
 ## This is the approximate time a connected node may be unresponsive until
 ## it is considered down and thereby disconnected.