bugfix: TSG-18316 修正获取拦截策略编译表的do_log字段
This commit is contained in:
@@ -52,11 +52,14 @@ static void intercept_param_new_cb(const char *table_name, int table_id, const c
|
|||||||
goto error_out;
|
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);
|
TFE_LOG_ERROR(enforcer->logger, "Invalid do log: %s", table_line);
|
||||||
goto error_out;
|
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)
|
if (maat_helper_read_column(table_line, 7, &offset, &len) < 0)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user