mirror of
https://github.com/falcosecurity/falco.git
synced 2025-09-17 07:18:26 +00:00
fix: take into consideration that load_yaml
is called more than once
Signed-off-by: Andrea Terzolo <andreaterzolo3@gmail.com>
This commit is contained in:
@@ -184,7 +184,12 @@ void falco_configuration::load_engine_config(const std::string& config_name, con
|
||||
}
|
||||
|
||||
// If we arrive here it means we have at least one change in the `engine` config.
|
||||
// Please note that `load_config` is called more than one time during initialization
|
||||
// so the last time wins
|
||||
m_changes_in_engine_config = true;
|
||||
m_syscall_buf_size_preset = 0;
|
||||
m_cpus_for_each_syscall_buffer = 0;
|
||||
m_syscall_drop_failed_exit = false;
|
||||
}
|
||||
|
||||
void falco_configuration::load_yaml(const std::string& config_name, const yaml_helper& config)
|
||||
|
@@ -172,9 +172,9 @@ public:
|
||||
// used to keep track if the `engine` config is used.
|
||||
bool m_changes_in_engine_config = false;
|
||||
// Index corresponding to the syscall buffer dimension.
|
||||
uint16_t m_syscall_buf_size_preset = 4;
|
||||
uint16_t m_syscall_buf_size_preset = 0;
|
||||
// Number of CPUs associated with a single ring buffer.
|
||||
uint16_t m_cpus_for_each_syscall_buffer = 2;
|
||||
uint16_t m_cpus_for_each_syscall_buffer = 0;
|
||||
bool m_syscall_drop_failed_exit = false;
|
||||
|
||||
private:
|
||||
|
Reference in New Issue
Block a user