Skip to main content

find_worker_binary

Function find_worker_binary 

Source
pub fn find_worker_binary() -> Result<PathBuf, SandboxError>
Expand description

Find the forgemax-worker binary.

Search order:

  1. FORGE_WORKER_BIN environment variable (must be absolute path)
  2. Same directory as the current executable

On Unix, rejects world-writable binaries (mode & 0o002 != 0).