LATX, fix: Support CEF sandbox isolation - #349
Open
y347812075 wants to merge 2 commits into
Open
Conversation
Support the namespace clone flags used by CEF while preserving RCU state across fork and raw clone paths. Evaluate x86 seccomp-BPF filters at guest syscall boundaries and provide the SIGSYS metadata required by CEF broker traps. Define the stable SECCOMP_RET_USER_NOTIF value for older UAPI headers while keeping user notification unsupported. Signed-off-by: yuerengan <y347812075@163.com>
Signed-off-by: yuerengan <y347812075@163.com>
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.
Summary
Root cause
LATX rejected the namespace flags used by Chromium zygotes before reaching the host kernel. Once namespace creation was enabled, applying the guest seccomp filter directly to the LoongArch translator would inspect the wrong syscall ABI and could restrict translator helper threads.
Chromium also relies on a single-threaded namespace child, nested user namespace mappings, and correct process state after exec. Incomplete child-state reconstruction left some applications unable to finish sandbox initialization even after the initial clone call succeeded.
Implementation
SIGSYSinformation forSECCOMP_RET_TRAPValidation
masteratbc1ca744700e5b73ed8b71f022317ebf7f1ff54a./latxbuild/build64.sh -c./latxbuild/build32.sh -ctests/integration/test-cef-userns-nested.sh: PASStests/integration/test-cef-userns-exec.sh: PASS--no-sandboxon the current environment--no-sandboxon Loongnix 20 old-world; default AOT/KZT repeat also passedThis PR replaces #344. Pure test reports and workflow documents are intentionally not included in the patch series.