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
@@ -219,7 +219,8 @@ enum HookAction {
|
||||
}
|
||||
|
||||
impl TestHooks {
|
||||
fn parse(args: &[String]) -> Result<Self, String> {
|
||||
/// Shared with the `verify` child, which takes the same flags.
|
||||
pub(crate) fn parse(args: &[String]) -> Result<Self, String> {
|
||||
#[cfg(not(feature = "test-hooks"))]
|
||||
let hooks = Self { seccomp: true };
|
||||
#[cfg(feature = "test-hooks")]
|
||||
@@ -257,7 +258,11 @@ impl TestHooks {
|
||||
}
|
||||
|
||||
#[cfg(feature = "test-hooks")]
|
||||
fn run_after_sandbox(&self, stdout: &mut dyn Write, stderr: &mut dyn Write) -> Option<i32> {
|
||||
pub(crate) fn run_after_sandbox(
|
||||
&self,
|
||||
stdout: &mut dyn Write,
|
||||
stderr: &mut dyn Write,
|
||||
) -> Option<i32> {
|
||||
if !self.seccomp {
|
||||
// Marker for crates/worker/scripts/derive-seccomp.sh: one `sched_yield`, a syscall
|
||||
// the decode path never makes, right where the filter would be installed. The
|
||||
@@ -314,7 +319,11 @@ impl TestHooks {
|
||||
}
|
||||
|
||||
#[cfg(not(feature = "test-hooks"))]
|
||||
fn run_after_sandbox(&self, _stdout: &mut dyn Write, _stderr: &mut dyn Write) -> Option<i32> {
|
||||
pub(crate) fn run_after_sandbox(
|
||||
&self,
|
||||
_stdout: &mut dyn Write,
|
||||
_stderr: &mut dyn Write,
|
||||
) -> Option<i32> {
|
||||
None
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user