seccomp: mask upper bits in socket deny rules #1249
All Vouch review confidence checks passed
Residual risk 0.12 = Change Risk (0.29) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.29 · 81 lines diff across 1 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.289
Diff Size
diff_size
0.264
Real PR Conversation Timeline
1 comments
"Review active on #1249"
general
weight: 0.35
giuseppe
Seccomp compares syscall arguments as 64-bit values, but the kernel reads the int parameters of socket(2) from the low 32 bits only. The deny rules for AF_VSOCK and NETLINK_AUDIT therefore did not match when the upper bits were set, so socket(0x100000028, SOCK_STREAM, 0) fell through to the allow rules and the kernel opened a vsock socket.
Compare the low 32 bits with SCMP_CMP_MASKED_EQ. The rules are already listed before the socket allow rules, which libseccomp needs for them to win over the overlapping allows.
Add a test that the deny rules for socket use the mask.
Fixes https://github.com/podman-container-tools/container-libs/issues/1248