From 1e2ba03754bb35f6c50570f5faaee46ebb7eab5d Mon Sep 17 00:00:00 2001 From: "Roger A. Light" Date: Wed, 28 Oct 2020 11:50:52 +0000 Subject: [PATCH] ctrl: Give dynsec init user more rights. Subscribe and receive from $SYS/# Subscribe and receive from # --- apps/mosquitto_ctrl/dynsec.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/mosquitto_ctrl/dynsec.c b/apps/mosquitto_ctrl/dynsec.c index adc2a189..e091c434 100644 --- a/apps/mosquitto_ctrl/dynsec.c +++ b/apps/mosquitto_ctrl/dynsec.c @@ -247,6 +247,10 @@ static cJSON *init_add_role(const char *rolename) if(init_add_acl_to_role(j_acls, "publishClientSend", "$CONTROL/dynamic-security/#") == NULL || init_add_acl_to_role(j_acls, "publishClientReceive", "$CONTROL/dynamic-security/#") == NULL || init_add_acl_to_role(j_acls, "subscribePattern", "$CONTROL/dynamic-security/#") == NULL + || init_add_acl_to_role(j_acls, "publishClientReceive", "$SYS/#") == NULL + || init_add_acl_to_role(j_acls, "subscribePattern", "$SYS/#") == NULL + || init_add_acl_to_role(j_acls, "publishClientReceive", "#") == NULL + || init_add_acl_to_role(j_acls, "subscribePattern", "#") == NULL || init_add_acl_to_role(j_acls, "unsubscribePattern", "#") == NULL ){