Add an optional allowlist for RPC methods: if the method is not listed, it is not allowed to be called or visible. This can be used to restrict accidental mis-configurations, and generally helps locking down the configuration surface. Signed-off-by: John Levon <john.levon@nutanix.com> Change-Id: Ied78fc4b14b60cb94ed0852b92deb6df545cbec4 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/15275 Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com> Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
19 lines
319 B
Plaintext
19 lines
319 B
Plaintext
{
|
|
global:
|
|
|
|
# public functions
|
|
spdk_rpc_verify_methods;
|
|
spdk_rpc_listen;
|
|
spdk_rpc_accept;
|
|
spdk_rpc_close;
|
|
spdk_rpc_register_method;
|
|
spdk_rpc_register_alias_deprecated;
|
|
spdk_rpc_is_method_allowed;
|
|
spdk_rpc_get_method_state_mask;
|
|
spdk_rpc_set_state;
|
|
spdk_rpc_get_state;
|
|
spdk_rpc_set_allowlist;
|
|
|
|
local: *;
|
|
};
|