Conversation
Guest test binary exercises all 8 CLONE_NEW* flag individually, combined flag, fail-closed EPERM path for unreadable clone_args, and a plain-fork sanity check proving clone3 routes through the supervisor (not the BPF deny list). Integration harness runs with --forward-verbose and matches supervisor's "clone3 denied: namespace flags" log line, so regression check proves active supervisor interception rather than relying on host-kernel EPERM semantics. Change-Id: I45a680f5f2b31978abb792f03351873c618e5ed9
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Guest test binary exercises all 8 CLONE_NEW* flag individually, combined flag, fail-closed EPERM path for unreadable clone_args, and a plain-fork sanity check proving clone3 routes through the supervisor (not the BPF deny list).
Integration harness runs with --forward-verbose and matches supervisor's "clone3 denied: namespace flags" log line, so regression check proves active supervisor interception rather than relying on host-kernel EPERM semantics.
Change-Id: I45a680f5f2b31978abb792f03351873c618e5ed9
Summary by cubic
Add clone3 namespace-flag regression tests to verify the supervisor blocks all
CLONE_NEW*flags and fails closed (EPERM) on unreadableclone_args, with a plain-fork success check. The harness now validates 9 denials via thekbox: clone3 denied: namespace flagslog.tests/guest/clone3-test.ccovering eachCLONE_NEW*flag, a combined case, unreadableclone_args-> EPERM, and a plainclone3fork success.scripts/run-tests.shto runclone3-testin seccomp mode with--forward-verbose, count 9 denial logs, and skip if the binary is missing in the rootfs.Written for commit 0000de4. Summary will update on new commits.