{"record":{"id":"6f2fb61802f0972d","repo":"tinyhumansai/openhuman","slug":"firejail-not-found-install-firejail-using-your-sy","errorCode":null,"errorMessage":"Firejail not found. Install firejail using your system package manager.","messagePattern":"Firejail not found\\. Install firejail using your system package manager\\.","errorType":"exception","errorClass":"io::Error","httpStatus":null,"severity":"error","filePath":"src/openhuman/security/firejail.rs","lineNumber":18,"sourceCode":"//! Firejail sandbox (Linux user-space sandboxing)\n//!\n//! Firejail is a SUID sandbox program that Linux applications use to sandbox themselves.\n\nuse crate::openhuman::security::traits::Sandbox;\nuse std::process::Command;\n\n/// Firejail sandbox backend for Linux\n#[derive(Debug, Clone, Default)]\npub struct FirejailSandbox;\n\nimpl FirejailSandbox {\n    /// Create a new Firejail sandbox\n    pub fn new() -> std::io::Result<Self> {\n        if Self::is_installed() {\n            Ok(Self)\n        } else {\n            Err(std::io::Error::new(\n                std::io::ErrorKind::NotFound,\n                \"Firejail not found. Install firejail using your system package manager.\",\n            ))\n        }\n    }\n\n    /// Probe if Firejail is available (for auto-detection)\n    pub fn probe() -> std::io::Result<Self> {\n        Self::new()\n    }\n\n    /// Check if firejail is installed\n    fn is_installed() -> bool {\n        Command::new(\"firejail\")\n            .arg(\"--version\")\n            .output()\n            .map(|o| o.status.success())\n            .unwrap_or(false)","sourceCodeStart":1,"sourceCodeEnd":36,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/openhuman/security/firejail.rs#L1-L36","documentation":"Constructor guard in FirejailSandbox::new(): is_installed() probes for the `firejail` SUID binary and this error fires when it is missing, meaning the Linux user-space sandbox backend cannot be instantiated. The message itself already carries the remediation hint.","triggerScenarios":"Thrown at src/openhuman/security/firejail.rs:18 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Install firejail with the distribution package manager (apt install firejail, dnf install firejail)","Ensure the firejail binary is on PATH for the user running the core","Select a different sandbox backend (landlock, bubblewrap, docker) in agent sandbox config"],"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"}