mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-20 05:31:15 +00:00
tipc: obsolete the remote management feature
Due to the lacking of any credential, it's allowed to accept commands requested from remote nodes to query the local node status, which is prone to involve potential security risks. Instead, if we login to a remote node with ssh command, this approach is not only more safe than the remote management feature, but also it can give us more permissions like changing the remote node configuration. So it's reasonable for us to obsolete the remote management feature now. Signed-off-by: Ying Xue <ying.xue@windriver.com> Reviewed-by: Erik Hugne <erik.hugne@ericsson.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
76d7882420
commit
5902385a24
5 changed files with 3 additions and 121 deletions
|
@ -50,7 +50,6 @@ int tipc_random __read_mostly;
|
|||
u32 tipc_own_addr __read_mostly;
|
||||
int tipc_max_ports __read_mostly;
|
||||
int tipc_net_id __read_mostly;
|
||||
int tipc_remote_management __read_mostly;
|
||||
int sysctl_tipc_rmem[3] __read_mostly; /* min/default/max */
|
||||
|
||||
/**
|
||||
|
@ -85,7 +84,6 @@ static void tipc_core_stop(void)
|
|||
tipc_net_stop();
|
||||
tipc_bearer_cleanup();
|
||||
tipc_netlink_stop();
|
||||
tipc_cfg_stop();
|
||||
tipc_subscr_stop();
|
||||
tipc_nametbl_stop();
|
||||
tipc_ref_table_stop();
|
||||
|
@ -130,18 +128,12 @@ static int tipc_core_start(void)
|
|||
if (err)
|
||||
goto out_subscr;
|
||||
|
||||
err = tipc_cfg_init();
|
||||
if (err)
|
||||
goto out_cfg;
|
||||
|
||||
err = tipc_bearer_setup();
|
||||
if (err)
|
||||
goto out_bearer;
|
||||
|
||||
return 0;
|
||||
out_bearer:
|
||||
tipc_cfg_stop();
|
||||
out_cfg:
|
||||
tipc_subscr_stop();
|
||||
out_subscr:
|
||||
tipc_unregister_sysctl();
|
||||
|
@ -166,7 +158,6 @@ static int __init tipc_init(void)
|
|||
pr_info("Activated (version " TIPC_MOD_VER ")\n");
|
||||
|
||||
tipc_own_addr = 0;
|
||||
tipc_remote_management = 1;
|
||||
tipc_max_ports = CONFIG_TIPC_PORTS;
|
||||
tipc_net_id = 4711;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue