From 3675ba0c9f60e174ce2fb0e9e62cf92c2ee278b5 Mon Sep 17 00:00:00 2001 From: Zhongwen Deng Date: Sat, 2 Jul 2022 16:58:52 +0800 Subject: [PATCH] fix: restricted_shell not working --- apps/emqx/etc/vm.args.cloud | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/emqx/etc/vm.args.cloud b/apps/emqx/etc/vm.args.cloud index 4ed272080..edd6944c2 100644 --- a/apps/emqx/etc/vm.args.cloud +++ b/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.