From ce0bdac5b007bb4351df11da05b94a1120d62271 Mon Sep 17 00:00:00 2001 From: yoloyyh <1764163852@qq.com> Date: Thu, 23 May 2024 18:13:00 +0800 Subject: [PATCH] fix patch dir cannot found --- rasp/librasp/src/manager.rs | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/rasp/librasp/src/manager.rs b/rasp/librasp/src/manager.rs index c4485f639..284e003c6 100644 --- a/rasp/librasp/src/manager.rs +++ b/rasp/librasp/src/manager.rs @@ -531,12 +531,14 @@ impl RASPManager { ) -> AnyhowResult<()> { info!("create rasp runtime path: {}", rasp_runtime_path); // dose Agent create `agent_runtime_path`? - if !Path::new(agent_runtime_path).exists() { - return Err(anyhow!( - "can not found agent runtime path: {}", - agent_runtime_path - )); - } + // /var/run/elkeid-agent cannot find who create, so just create the dir + // if !Path::new(agent_runtime_path).exists() { + + // return Err(anyhow!( + // "can not found agent runtime path: {}", + // agent_runtime_path + // )); + // } let rasp_runtime_path_full = format!("{}{}", agent_runtime_path, rasp_runtime_path); let path = Path::new(&rasp_runtime_path_full); if path.exists() {