mirror of
https://github.com/falcosecurity/falco.git
synced 2025-07-21 09:59:40 +00:00
chore(userspace/falco): make source matching error more expressive
Signed-off-by: Jason Dellaluce <jasondellaluce@gmail.com>
This commit is contained in:
parent
2b9082209b
commit
7c387069af
@ -265,10 +265,13 @@ static falco::app::run_result do_inspect(
|
|||||||
if (source_engine_idx == sinsp_no_event_source_idx)
|
if (source_engine_idx == sinsp_no_event_source_idx)
|
||||||
{
|
{
|
||||||
std::string msg = "Unknown event source for inspector's event";
|
std::string msg = "Unknown event source for inspector's event";
|
||||||
if (ev->get_type() == PPME_PLUGINEVENT_E)
|
if (ev->get_type() == PPME_PLUGINEVENT_E || ev->get_type() == PPME_ASYNCEVENT_E)
|
||||||
{
|
{
|
||||||
auto pluginID = *(int32_t *)ev->get_param(0)->m_val;
|
auto pluginID = *(uint32_t *)ev->get_param(0)->m_val;
|
||||||
msg += " (plugin ID: " + std::to_string(pluginID) + ")";
|
if (pluginID != 0)
|
||||||
|
{
|
||||||
|
msg += " (plugin ID: " + std::to_string(pluginID) + ")";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return run_result::fatal(msg);
|
return run_result::fatal(msg);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user