pub enum CoreError {
NoHomeDir,
ConfigLoad {
path: PathBuf,
source: Box<dyn Error + Send + Sync>,
},
ConfigPolicy {
path: PathBuf,
reason: String,
},
UnknownBaseProfile {
child: String,
base: String,
},
DetectionFailed {
command: String,
},
BackendUnavailable {
reason: String,
},
BackendDegraded {
capability: &'static str,
detail: String,
},
ProfileLint(String),
Io(Error),
Backend(String),
}Expand description
Errors that can occur in sbe-core.
Variants§
NoHomeDir
Failed to determine the user’s home directory.
ConfigLoad
Failed to read or parse a configuration file.
ConfigPolicy
A syntactically valid configuration violates SBE’s trust or size policy.
UnknownBaseProfile
An extended profile references a base that does not exist.
DetectionFailed
No ecosystem could be detected and no –profile was given.
The backend cannot be constructed on this host (e.g., missing kernel feature, missing binary). The orchestrator surfaces this directly.
BackendDegraded
The requested profile cannot be enforced on the current kernel.
detail names any narrowly scoped compatibility option, when one is
safe and available; there is no general-purpose degradation bypass.
ProfileLint(String)
A backend-time lint rejected the resolved profile (e.g., an exec
allowlist subpath that would re-enable sudo).
Io(Error)
I/O failure while preparing or running the sandboxed process.
Backend(String)
Backend-specific error from landlock, seccompiler, or similar.
Trait Implementations§
Source§impl Error for CoreError
impl Error for CoreError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()