mirror of
https://github.com/falcosecurity/falco.git
synced 2025-08-04 16:00:05 +00:00
update(gvisor): make gvisor_enable depend on config
Signed-off-by: Luca Guerra <luca@guerra.sh> Co-authored-by: Jason Dellaluce <jasondellaluce@gmail.com>
This commit is contained in:
parent
993516f430
commit
982e8663be
@ -30,6 +30,7 @@ namespace app {
|
|||||||
cmdline_options::cmdline_options()
|
cmdline_options::cmdline_options()
|
||||||
: event_buffer_format(sinsp_evt::PF_NORMAL),
|
: event_buffer_format(sinsp_evt::PF_NORMAL),
|
||||||
list_plugins(false),
|
list_plugins(false),
|
||||||
|
gvisor_config(""),
|
||||||
m_cmdline_opts("falco", "Falco - Cloud Native Runtime Security")
|
m_cmdline_opts("falco", "Falco - Cloud Native Runtime Security")
|
||||||
{
|
{
|
||||||
define();
|
define();
|
||||||
|
@ -196,7 +196,7 @@ private:
|
|||||||
|
|
||||||
inline bool is_gvisor_enabled() const
|
inline bool is_gvisor_enabled() const
|
||||||
{
|
{
|
||||||
return m_state->inspector->is_gvisor();
|
return !m_options.gvisor_config.empty();
|
||||||
}
|
}
|
||||||
|
|
||||||
std::unique_ptr<state> m_state;
|
std::unique_ptr<state> m_state;
|
||||||
|
Loading…
Reference in New Issue
Block a user