mirror of
https://github.com/falcosecurity/falco.git
synced 2025-08-11 19:12:12 +00:00
update(cmake,userspace): bump libs and driver to latest master.
Signed-off-by: Federico Di Pierro <nierro92@gmail.com>
This commit is contained in:
parent
a3bf8b472b
commit
24eec1e92a
@ -34,8 +34,8 @@ else()
|
|||||||
# In case you want to test against another driver version (or branch, or commit) just pass the variable -
|
# In case you want to test against another driver version (or branch, or commit) just pass the variable -
|
||||||
# ie., `cmake -DDRIVER_VERSION=dev ..`
|
# ie., `cmake -DDRIVER_VERSION=dev ..`
|
||||||
if(NOT DRIVER_VERSION)
|
if(NOT DRIVER_VERSION)
|
||||||
set(DRIVER_VERSION "774db6b944cb4c7bca692400cec89cf14312cac2")
|
set(DRIVER_VERSION "473bf06780abf9b00923c90d779e4ff16f19903a")
|
||||||
set(DRIVER_CHECKSUM "SHA256=61984089d71cc96e4fdf1ffe82b4da16802a0228859d7f15745173f0c9673b5e")
|
set(DRIVER_CHECKSUM "SHA256=aa45432acd385881365a8aee7bfe1982fd6278aa7b23466d6864c2ffda5216dd")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# cd /path/to/build && cmake /path/to/source
|
# cd /path/to/build && cmake /path/to/source
|
||||||
|
@ -35,8 +35,8 @@ else()
|
|||||||
# In case you want to test against another falcosecurity/libs version (or branch, or commit) just pass the variable -
|
# In case you want to test against another falcosecurity/libs version (or branch, or commit) just pass the variable -
|
||||||
# ie., `cmake -DFALCOSECURITY_LIBS_VERSION=dev ..`
|
# ie., `cmake -DFALCOSECURITY_LIBS_VERSION=dev ..`
|
||||||
if(NOT FALCOSECURITY_LIBS_VERSION)
|
if(NOT FALCOSECURITY_LIBS_VERSION)
|
||||||
set(FALCOSECURITY_LIBS_VERSION "774db6b944cb4c7bca692400cec89cf14312cac2")
|
set(FALCOSECURITY_LIBS_VERSION "473bf06780abf9b00923c90d779e4ff16f19903a")
|
||||||
set(FALCOSECURITY_LIBS_CHECKSUM "SHA256=61984089d71cc96e4fdf1ffe82b4da16802a0228859d7f15745173f0c9673b5e")
|
set(FALCOSECURITY_LIBS_CHECKSUM "SHA256=aa45432acd385881365a8aee7bfe1982fd6278aa7b23466d6864c2ffda5216dd")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# cd /path/to/build && cmake /path/to/source
|
# cd /path/to/build && cmake /path/to/source
|
||||||
|
@ -48,11 +48,6 @@ falco::app::run_result falco::app::actions::open_live_inspector(
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
if((s.config->m_metrics_flags & METRICS_V2_STATE_COUNTERS))
|
|
||||||
{
|
|
||||||
inspector->set_sinsp_stats_v2_enabled();
|
|
||||||
}
|
|
||||||
|
|
||||||
if(s.config->m_falco_libs_thread_table_size > 0)
|
if(s.config->m_falco_libs_thread_table_size > 0)
|
||||||
{
|
{
|
||||||
// Default value is set in libs as part of the sinsp_thread_manager setup
|
// Default value is set in libs as part of the sinsp_thread_manager setup
|
||||||
|
@ -109,15 +109,29 @@ falco::app::run_result falco::app::actions::init_inspectors(falco::app::state& s
|
|||||||
std::unordered_set<std::string> used_plugins;
|
std::unordered_set<std::string> used_plugins;
|
||||||
const auto& all_plugins = s.offline_inspector->get_plugin_manager()->plugins();
|
const auto& all_plugins = s.offline_inspector->get_plugin_manager()->plugins();
|
||||||
|
|
||||||
|
if((s.config->m_metrics_flags & METRICS_V2_STATE_COUNTERS))
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
for (const auto &src : s.loaded_sources)
|
for (const auto &src : s.loaded_sources)
|
||||||
{
|
{
|
||||||
auto src_info = s.source_infos.at(src);
|
auto src_info = s.source_infos.at(src);
|
||||||
|
|
||||||
// in capture mode, every event source uses the offline inspector.
|
// in capture mode, every event source uses the offline inspector.
|
||||||
// in live mode, we create a new inspector for each event source
|
// in live mode, we create a new inspector for each event source
|
||||||
src_info->inspector = s.is_capture_mode()
|
if (s.is_capture_mode())
|
||||||
? s.offline_inspector
|
{
|
||||||
: std::make_shared<sinsp>();
|
src_info->inspector = s.offline_inspector;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
src_info->inspector = std::make_shared<sinsp>(false,
|
||||||
|
"",
|
||||||
|
"",
|
||||||
|
"",
|
||||||
|
s.config->m_metrics_flags & METRICS_V2_STATE_COUNTERS);
|
||||||
|
}
|
||||||
|
|
||||||
// do extra preparation for the syscall source
|
// do extra preparation for the syscall source
|
||||||
if (src == falco_common::syscall_source)
|
if (src == falco_common::syscall_source)
|
||||||
|
Loading…
Reference in New Issue
Block a user