From f01de7e2a0694bf7ac03773ad3f5a9d0be8458ae Mon Sep 17 00:00:00 2001 From: Kevin Wang Date: Fri, 31 Jul 2026 08:47:31 +0000 Subject: [PATCH] fix(simulator): support current FUSE soname --- dstack/tee-simulator/src/nsm.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/dstack/tee-simulator/src/nsm.rs b/dstack/tee-simulator/src/nsm.rs index c0ef2de28..bc4d44835 100644 --- a/dstack/tee-simulator/src/nsm.rs +++ b/dstack/tee-simulator/src/nsm.rs @@ -86,7 +86,12 @@ fn cuse() -> &'static CuseApi { } unsafe fn load_cuse() -> Result { - let library = Box::leak(Box::new(libloading::Library::new("libfuse3.so.3")?)); + // FUSE 3.18 bumped the shared-library SONAME to 4. Keep the older SONAME + // fallback so development binaries also run on distributions that still + // ship the previous ABI. + let library = libloading::Library::new("libfuse3.so.4") + .or_else(|_| libloading::Library::new("libfuse3.so.3"))?; + let library = Box::leak(Box::new(library)); Ok(CuseApi { main: *library.get(b"cuse_lowlevel_main\0")?, reply_open: *library.get(b"fuse_reply_open\0")?,