change maat_plugin_table_get_ex_data() key type from uuid_t to uuid string

This commit is contained in:
luwenpeng
2024-09-26 15:21:08 +08:00
parent 5d3ee62d23
commit bb9f4eecc1
5 changed files with 7 additions and 7 deletions

View File

@@ -184,7 +184,7 @@ void chaining_policy_enforce(struct chaining_policy_enforcer *enforcer, struct t
}
uuid_unparse(*rule_id, str_rule_id);
struct chaining_param *param = (struct chaining_param *)maat_plugin_table_get_ex_data(enforcer->maat, enforcer->table_name, (const char *)rule_id, sizeof(uuid_t));
struct chaining_param *param = (struct chaining_param *)maat_plugin_table_get_ex_data(enforcer->maat, enforcer->table_name, (const char *)str_rule_id, strlen(str_rule_id));
if (param == NULL)
{
TFE_LOG_INFO(enforcer->logger, "Failed to get chaining parameter of policy %s.", str_rule_id);