fix(worker): second security pass — content-only rejection codes (resource_limit, explicit list), negative proofs of the seccomp argument filters, PR_GET_DUMPABLE self-check, strict WebP chunk structure, iCCP-bomb fixture, separate test target cache; ci: release-images builder actually used (job-level DOCKER_CONFIG, --builder), literal cleanup path, token scoped to the login step, npm advisories gate, digests from build metadata
This commit is contained in:
1 parent
11813f5560
commit
a8b644a515
12 files changed
+278
-55
No files matched your search
@@ -84,6 +84,36 @@ fn oversized_headers_are_refused_before_decoding() {
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn an_iccp_bomb_is_a_content_rejection_not_a_broken_environment() {
|
||||
expect_rejected(
|
||||
&fixtures::png_iccp_bomb(300 << 20),
|
||||
exit_codes::RESOURCE_LIMIT,
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn a_signal_to_the_parent_is_killed_by_the_argument_filter() {
|
||||
let run = with_hook(&["--signal-parent"]).decode(b"");
|
||||
assert!(
|
||||
matches!(run.outcome, ChildOutcome::Signalled { signal: SIGSYS }),
|
||||
"{:?} {}",
|
||||
run.outcome,
|
||||
run.stderr
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn an_executable_mapping_is_killed_by_the_argument_filter() {
|
||||
let run = with_hook(&["--mmap-exec"]).decode(b"");
|
||||
assert!(
|
||||
matches!(run.outcome, ChildOutcome::Signalled { signal: SIGSYS }),
|
||||
"{:?} {}",
|
||||
run.outcome,
|
||||
run.stderr
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn unsupported_formats_are_refused() {
|
||||
expect_rejected(&fixtures::gif(), exit_codes::UNSUPPORTED_TYPE);
|
||||
|
||||
Reference in new issue
Block a user