diff --git a/configs/jsonrpc.yaml.default b/configs/jsonrpc.yaml.default index 82665a22544..f6436564e76 100644 --- a/configs/jsonrpc.yaml.default +++ b/configs/jsonrpc.yaml.default @@ -11,4 +11,4 @@ # rpc: # enabled: true # unix: -# restricted_api: true +# restricted_api: false diff --git a/doc/admin-guide/files/jsonrpc.yaml.en.rst b/doc/admin-guide/files/jsonrpc.yaml.en.rst index 86fb8f36839..26aff3942f2 100644 --- a/doc/admin-guide/files/jsonrpc.yaml.en.rst +++ b/doc/admin-guide/files/jsonrpc.yaml.en.rst @@ -76,7 +76,7 @@ File `jsonrpc.yaml` is a YAML format. The default configuration looks like: rpc: enabled: true unix: - restricted_api: true + restricted_api: false ===================== ========================================================== diff --git a/mgmt/rpc/server/IPCSocketServer.h b/mgmt/rpc/server/IPCSocketServer.h index 3a76bf42410..886646a01b8 100644 --- a/mgmt/rpc/server/IPCSocketServer.h +++ b/mgmt/rpc/server/IPCSocketServer.h @@ -119,7 +119,7 @@ class IPCSocketServer : public BaseCommInterface int backlog{5}; int maxRetriesOnTransientErrors{64}; bool restrictedAccessApi{ - true}; // This config value will drive the permissions of the jsonrpc socket(either 0700(default) or 0777). + NON_RESTRICTED_API}; // This config value will drive the permissions of the jsonrpc socket(either 0700(default) or 0777). }; friend struct YAML::convert;