Repository navigation
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.
Refuse AF_PACKET #1457
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Uh oh!
There was an error while loading. Please reload this page.
Refuse AF_PACKET #1457
Changes from all commits
4492e36f2aa888a7b725ec6a9521b2949c6f9e90140aa18c81c9893d7c9b02fFile filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Medium (reliability) β compat-ABI workloads are killed on their first syscall.
Attribution:
introduced_by_changeβ this newSECCOMP_RET_KILL_PROCESSbranch handles foreign audit architectures and x32 syscall numbers. A 32-bit program under an installed firewall can now die with SIGSYS before it opens any network socket, rather than receiving a meaningful sandbox-policy error. This may be a deliberate fail-closed policy, but it is neither documented nor exercised by the new test.Fix: Document and test the supported ABI restriction with a useful diagnostic, or add a compat-ABI policy that still refuses packet sockets.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Medium (reliability) β filter installation adds an opaque privilege prerequisite.
Attribution:
introduced_by_changeβSECCOMP_SET_MODE_FILTERis new here. It requiresCAP_SYS_ADMINin the caller's user namespace or an already-setno_new_privs; the code does not set the latter. A caller with enough privilege for the existingPR_CAPBSET_DROPbut not this new step now fails a firewalled run. The returned bare OS error does not identify whichpre_execstep failed.Fix: Document the new prerequisite, distinguish the seccomp failure without allocating unsafely in
pre_exec, and test the failing-install path. Do not setno_new_privsindiscriminately because it changes privileged-exec behavior.Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.