There was an error while loading. Please reload this page.
2 parents c64370c + f01de7e commit 931a055Copy full SHA for 931a055
1 file changed
dstack/tee-simulator/src/nsm.rs
@@ -86,7 +86,12 @@ fn cuse() -> &'static CuseApi {
86
}
87
88
unsafe fn load_cuse() -> Result<CuseApi> {
89
- 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
90
+ // fallback so development binaries also run on distributions that still
91
+ // ship the previous ABI.
92
+ let library = libloading::Library::new("libfuse3.so.4")
93
+ .or_else(|_| libloading::Library::new("libfuse3.so.3"))?;
94
+ let library = Box::leak(Box::new(library));
95
Ok(CuseApi {
96
main: *library.get(b"cuse_lowlevel_main\0")?,
97
reply_open: *library.get(b"fuse_reply_open\0")?,
0 commit comments