{"record":{"id":"02bc663ee25f40f9","repo":"tinyhumansai/openhuman","slug":"landlock-is-only-supported-on-linux-with-the-sandb","errorCode":null,"errorMessage":"Landlock is only supported on Linux with the sandbox-landlock feature","messagePattern":"Landlock is only supported on Linux with the sandbox-landlock feature","errorType":"exception","errorClass":"io::Error","httpStatus":null,"severity":"error","filePath":"src/openhuman/security/landlock.rs","lineNumber":160,"sourceCode":"    }\n\n    fn name(&self) -> &str {\n        \"landlock\"\n    }\n\n    fn description(&self) -> &str {\n        \"Linux kernel LSM sandboxing (filesystem access control)\"\n    }\n}\n\n// Stub implementations for non-Linux or when feature is disabled\n#[cfg(not(all(feature = \"sandbox-landlock\", target_os = \"linux\")))]\npub struct LandlockSandbox;\n\n#[cfg(not(all(feature = \"sandbox-landlock\", target_os = \"linux\")))]\nimpl LandlockSandbox {\n    pub fn new() -> std::io::Result<Self> {\n        Err(std::io::Error::new(\n            std::io::ErrorKind::Unsupported,\n            \"Landlock is only supported on Linux with the sandbox-landlock feature\",\n        ))\n    }\n\n    pub fn with_workspace(_workspace_dir: Option<std::path::PathBuf>) -> std::io::Result<Self> {\n        Err(std::io::Error::new(\n            std::io::ErrorKind::Unsupported,\n            \"Landlock is only supported on Linux\",\n        ))\n    }\n\n    pub fn probe() -> std::io::Result<Self> {\n        Err(std::io::Error::new(\n            std::io::ErrorKind::Unsupported,\n            \"Landlock is only supported on Linux\",\n        ))\n    }","sourceCodeStart":142,"sourceCodeEnd":178,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/openhuman/security/landlock.rs#L142-L178","documentation":"Stub-implementation error: this LandlockSandbox::new() only compiles when NOT (Linux AND feature sandbox-landlock), so reaching it means the binary was built without the sandbox-landlock Cargo feature or for a non-Linux target. It is a build-configuration fact, not a runtime environment failure — the backend simply does not exist in this binary.","triggerScenarios":"Thrown at src/openhuman/security/landlock.rs:160 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Rebuild with --features sandbox-landlock on a Linux target","Use the platform-appropriate backend (Seatbelt on macOS, AppContainer on Windows)","Check backend availability at runtime and skip landlock selection on unsupported builds"],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"749120085864ce16e0f273c7b86fac7740b39c5b","analyzedAt":"2026-08-17T21:21:45.363Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}