bugfix: TSG-18316 修正获取拦截策略编译表的do_log字段
This commit is contained in:
@@ -51,12 +51,15 @@ static void intercept_param_new_cb(const char *table_name, int table_id, const c
|
||||
TFE_LOG_ERROR(enforcer->logger, "Invalid intercept action: %s", table_line);
|
||||
goto error_out;
|
||||
}
|
||||
|
||||
if (maat_helper_read_column(table_line, 5, &do_log, &len) < 0)
|
||||
|
||||
if (maat_helper_read_column(table_line, 5, &offset, &len) < 0)
|
||||
{
|
||||
TFE_LOG_ERROR(enforcer->logger, "Invalid do log: %s", table_line);
|
||||
goto error_out;
|
||||
}
|
||||
memset(buffer, 0, sizeof(buffer));
|
||||
memcpy(buffer, table_line + offset, MIN(sizeof(buffer), len));
|
||||
do_log = atoi(buffer);
|
||||
|
||||
if (maat_helper_read_column(table_line, 7, &offset, &len) < 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user