File tree 5 files changed +20
-3
lines changed
5 files changed +20
-3
lines changed Original file line number Diff line number Diff line change @@ -480,6 +480,10 @@ plugins:
480
480
- name : json
481
481
library_path : libjson.so
482
482
483
+ # Uncomment to disable host info support for source plugins
484
+ # that DO NOT generate raw events from the libscap event table,
485
+ # dropping the `hostPath` volume requirement for them.
486
+ # plugins_hostinfo: false
483
487
484
488
# #########################
485
489
# Falco outputs settings #
Original file line number Diff line number Diff line change @@ -61,9 +61,15 @@ falco::app::run_result falco::app::actions::open_live_inspector(falco::app::stat
61
61
falco_logger::log (
62
62
falco_logger::level::INFO,
63
63
" Opening '" + source + " ' source with plugin '" + cfg->m_name + " '" );
64
- inspector->open_plugin (cfg->m_name ,
65
- cfg->m_open_params ,
66
- sinsp_plugin_platform::SINSP_PLATFORM_HOSTINFO);
64
+ if (s.config .m_plugins_hostinfo ) {
65
+ inspector->open_plugin (cfg->m_name ,
66
+ cfg->m_open_params ,
67
+ sinsp_plugin_platform::SINSP_PLATFORM_HOSTINFO);
68
+ } else {
69
+ inspector->open_plugin (cfg->m_name ,
70
+ cfg->m_open_params ,
71
+ sinsp_plugin_platform::SINSP_PLATFORM_GENERIC);
72
+ }
67
73
return run_result::ok ();
68
74
}
69
75
}
Original file line number Diff line number Diff line change @@ -44,6 +44,9 @@ const char config_schema_string[] = LONG_STRING_CONST(
44
44
" watch_config_files ": {
45
45
" type ": " boolean "
46
46
},
47
+ " plugins_hostinfo ": {
48
+ " type ": " boolean "
49
+ },
47
50
" rules_files ": {
48
51
" type ": " array ",
49
52
" items ": {
Original file line number Diff line number Diff line change @@ -96,6 +96,7 @@ falco_configuration::falco_configuration():
96
96
m_metrics_flags(0 ),
97
97
m_metrics_convert_memory_to_mb(true ),
98
98
m_metrics_include_empty_values(false ),
99
+ m_plugins_hostinfo(true ),
99
100
m_container_engines_mask(0 ),
100
101
m_container_engines_disable_cri_async(false ),
101
102
m_container_engines_cri_socket_paths({" /run/containerd/containerd.sock" ,
@@ -616,6 +617,8 @@ void falco_configuration::load_yaml(const std::string &config_name) {
616
617
m_metrics_include_empty_values =
617
618
m_config.get_scalar <bool >(" metrics.include_empty_values" , false );
618
619
620
+ m_plugins_hostinfo = m_config.get_scalar <bool >(" plugins_hostinfo" , true );
621
+
619
622
m_config.get_sequence <std::vector<rule_selection_config>>(m_rules_selection, " rules" );
620
623
m_config.get_sequence <std::vector<append_output_config>>(m_append_output, " append_output" );
621
624
Original file line number Diff line number Diff line change @@ -193,6 +193,7 @@ class falco_configuration {
193
193
bool m_metrics_convert_memory_to_mb;
194
194
bool m_metrics_include_empty_values;
195
195
std::vector<plugin_config> m_plugins;
196
+ bool m_plugins_hostinfo;
196
197
197
198
// container engines
198
199
uint64_t m_container_engines_mask;
You can’t perform that action at this time.
0 commit comments