feat(worker): V1-2.3 sandboxed verify child and sheet-verify job mode
This commit is contained in:
1 parent
345dde59e6
commit
31fbb0317f
24 files changed
+2145
-87
No files matched your search
@@ -1,4 +1,4 @@
|
||||
//! Exit codes of the `decode` child, reserved away from 1 (generic failure), 101 (Rust
|
||||
//! Exit codes of the `decode` and `verify` children, reserved away from 1 (generic failure), 101 (Rust
|
||||
//! panic) and signal deaths (reported separately by the parent). The parent maps them to
|
||||
//! the closed rejection reasons of STEP8_FILES_ANALYSIS II.7.
|
||||
|
||||
@@ -19,6 +19,8 @@ pub const RESOURCE_LIMIT: i32 = 19;
|
||||
pub const CHILD_BROKEN: i32 = 20;
|
||||
/// The parent's watchdog found a stage past its deadline and exited (R1).
|
||||
pub const WATCHDOG: i32 = 21;
|
||||
/// The `verify` child could not read its framed input: a parent bug, never the content's.
|
||||
pub const FRAME_INVALID: i32 = 22;
|
||||
|
||||
/// Codes that judge the content (the upload is refused). Every other non-zero code means
|
||||
/// the child's environment is broken (`Broken` outcome: the parent alerts rather than
|
||||
@@ -48,6 +50,7 @@ pub fn name(code: i32) -> &'static str {
|
||||
RESOURCE_LIMIT => "resource_limit",
|
||||
CHILD_BROKEN => "child_broken",
|
||||
WATCHDOG => "watchdog",
|
||||
FRAME_INVALID => "frame_invalid",
|
||||
_ => "unknown",
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user