From e68151eb0704245ca43653cda564bb5685d990a3 Mon Sep 17 00:00:00 2001 From: Federico Di Pierro Date: Wed, 5 Oct 2022 15:47:55 +0200 Subject: [PATCH] chore(test,userspace/falco): fixed tests after libs bump. Moreover, try to create grpc socket folder path only if grpc is actually enabled. Signed-off-by: Federico Di Pierro --- test/falco_tests.yaml | 2 +- userspace/falco/app_actions/create_requested_paths.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/falco_tests.yaml b/test/falco_tests.yaml index 118ca5e9..1b1ee713 100644 --- a/test/falco_tests.yaml +++ b/test/falco_tests.yaml @@ -724,7 +724,7 @@ trace_files: !mux - "Write below etc": 1 - "System procs network activity": 1 - "Mkdir binary dirs": 1 - - "System user interactive": 1 + - "System user interactive": 0 - "DB program spawned process": 1 - "Non sudo setuid": 1 - "Create files below dev": 1 diff --git a/userspace/falco/app_actions/create_requested_paths.cpp b/userspace/falco/app_actions/create_requested_paths.cpp index de4d61e6..77d73bf5 100644 --- a/userspace/falco/app_actions/create_requested_paths.cpp +++ b/userspace/falco/app_actions/create_requested_paths.cpp @@ -67,7 +67,7 @@ application::run_result application::create_requested_paths() } } - if (!m_state->config->m_grpc_bind_address.empty()) + if (m_state->config->m_grpc_enabled && !m_state->config->m_grpc_bind_address.empty()) { if(falco::utils::network::is_unix_scheme(m_state->config->m_grpc_bind_address)) { @@ -108,4 +108,4 @@ int application::create_dir(const std::string &path) } } return 0; -} \ No newline at end of file +}