//! The syscall tier where it cannot be: it is built from Linux's user //! namespaces, Landlock, seccomp and cgroups, so a runner elsewhere (a //! Windows runner, oxygenflow#83) never offers it, and these say why. use crate::home::Home; use crate::microvm::{Outcome, Sink}; use anyhow::{bail, Result}; use flow_core::api::SecretInput; use flow_core::{Job, Sandbox}; use std::path::Path; use std::time::Duration; pub use crate::tier::disk_dir; pub(crate) use crate::tier::{lines, self_hash, FAILED}; const WHY: &str = "the syscall tier runs only on Linux"; pub fn available() -> std::result::Result<(), String> { Err(WHY.into()) } pub fn probe_main() -> i32 { eprintln!("{WHY}"); 1 } pub fn sandbox_main(_spec_path: &Path) -> i32 { eprintln!("{WHY}"); 125 } #[allow(clippy::too_many_arguments)] pub fn run( _home: &Home, _sandbox: &Sandbox, _job: &Job, _secrets: &[SecretInput], _workspace: &Path, _scratch: &Path, _timeout: Duration, _sink: &mut dyn Sink, _name: &str, ) -> Result { bail!("{WHY}") }