diff options
author | Andris Zeila <andris.zeila@zabbix.com> | 2020-06-09 15:14:23 +0300 |
---|---|---|
committer | Andris Zeila <andris.zeila@zabbix.com> | 2020-06-09 15:14:54 +0300 |
commit | e1abf351285e1c3010930b5a3adebad5a4f01d2a (patch) | |
tree | edf701090bc7dfe37b3ff0733c8d1e009765dfa3 /include/sysinfo.h | |
parent | 370a88e0af20d20eb451e14fee8ec74c79bb9818 (diff) |
...G...... [ZBX-17759] aliased EnableRemoteCommands to Allow/DenyKey=system.run[*], added default DenyKey=system.run[*] rule for backwards compatibility
* commit 'e83cf076c05bc67b074bbd2237060d9a6f0d9adb': (21 commits)
.D........ [ZBX-17759] added changelog entry
...G...... [ZBX-17759] ignore system.run rules when removing trailing AllowKey (redundant) rules
.......... [ZBX-17759] fixed tests
.......... [ZBX-17759] updated agent2 key access rule tests
...G...... [ZBX-17759] fixed default system.run[*] deny rule applying for agent2
.......... [ZBX-17769] updated tests because defaault system.run[*] deny rule is not added if any 'match all' rule is present
...G...... [ZBX-17759] fixed default system.run[*] deny rule handling
...G...... [ZBX-17759] ignore key access rules when processing local checks (Host*Item configuration parameters)
...G...... [ZBX-17759] added warnings about unreachable/redundant key access rules for agent2
...G...... [ZBX-17759] fixed crash in key access rule parsing
...G...... [ZBX-17759] changed printed ryle types from allow/deny to AllowKey/DenyKey to match other messages
...G...... [ZBX-17759] added warning message when removing unreachable/redundant key access rules
...G...... [ZBX-17759] fixed warning message
...G...... [ZBX-17759] style fix, skip code block that is not used when there are no parameters defined
.......... [ZBX-17759] updated configuration files
...G...... [ZBX-17759] style fix, const
.......... [ZBX-17759] update agent configuration files
...G...... [ZBX-17759] removed redundant variable, fixed missing prototype warning
...G...... [ZBX-17759] removed EnableRemoteCommands parameter from agent2, updated warning message about duplicated rules
...G...... [ZBX-17759] update allow/deny key rule processing to match C agent logic
...
(cherry picked from commit a8e00c66959392d3308028345787566fd0df7a45)
Diffstat (limited to 'include/sysinfo.h')
-rw-r--r-- | include/sysinfo.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sysinfo.h b/include/sysinfo.h index 51ece244f63..8f49ffb79b1 100644 --- a/include/sysinfo.h +++ b/include/sysinfo.h @@ -206,7 +206,7 @@ void free_metrics(void); void init_key_access_rules(void); void finalize_key_access_rules_configuration(void); -int add_key_access_rule(const char *pattern, zbx_key_access_rule_type_t type); +int add_key_access_rule(const char *parameter, char *pattern, zbx_key_access_rule_type_t type); int check_key_access_rules(const char *metric); int check_request_access_rules(AGENT_REQUEST *request); void free_key_access_rules(void); |