Repository navigation
runtime: isolate and validate sandbox grant transport - #3433
adilalperenciftci wants to merge 1 commit into
Conversation
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
Signed-off-by: Adil Alperen Çiftci <adilalperenciftci@users.noreply.github.com>
ebdb453 to
ac2a506
Compare
|
Thanks, reviewed and folded into the batch #3456 with your authorship kept on the commit. One change on top: the grant serialiser now denies an entry that would run past its buffer, and 🤖 Generated with Claude Code |
|
Merged as part of #3456 (merge 9364d6b), with your authorship on the commit. Thank you, @adilalperenciftci: this was a real fix, carefully tested, and it's appreciated. 🤖 Generated with Claude Code |
|
A correction to my closing note: #3456 took this PR's earlier revision (ebdb453, the unique shm names). Your later push (ac2a506: 🤖 Generated with Claude Code |
|
Follow-up with your later revision, rebased onto main with you as author: #3466. 🤖 Generated with Claude Code |
…port runtime: validate sandbox grant transport (#3433's later revision, by @adilalperenciftci)
Summary
I traced two grant-transport failures in
spawn_sandboxed: concurrent calls reused one PID-only shared-memory name, and the fixed serializer accepted incomplete records while allowingsnprintf's required length to exceed its stack buffer. A valid empty grant list was rejected even though it represents a deny-all policy.This change:
O_CREAT | O_EXCLand bounded collision retries;Verification
/aether_sandbox_<pid>object; empty deny-all returned-1; null, multiline and oversized records were accepted.sh tests/integration/sandbox_grant_transport/test_sandbox_grant_transport.shsh tests/integration/sandbox_unique_shm/test_sandbox_unique_shm.shmake check-changelogmake check-testsmake test(634 passed)The optional i386 clone probe skipped because Zig is not installed in the Ubuntu VM.
Signed-off-by: Adil Alperen Çiftci adilalperenciftci@users.noreply.github.com