fix: preserve ownership when exporting keep-id containers #29899
All Vouch review confidence checks passed
Residual risk 0.20 = Change Risk (0.47) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.47 · 332 lines diff across 4 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
Diff Size
diff_size
0.347
Shallow Review Depth
shallow_review_depth
0.289
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #29899"
general
weight: 0.35
giuseppe
fix: preserve ownership when exporting keep-id containers
Fixes: #29856
English is not my first language; this description was written in Chinese by me and translated with a translation tool.
Checklist
Ensure you have completed the following checklist for your pull request to be reviewed:
commits. (
git commit -s). (If needed, usegit commit -s --amend). The author email must matchthe sign-off email address. Read the DCO Sign-off requirements
and ensure you follow them before signing off your commits.
Fixes: #00000in commit message (if applicable)make validatepr(format/lint checks)Noneif no user-facing changes)Does this PR introduce a user-facing change?
``
release-notepodman exportFixed
writing wrong file ownership into the tarball for rootless containers created with--userns=keep-id.
`PR Description:
, the exported tar shows host IDs as file ownership, so files owned by container UID/GID 1000 come out as 0/0.passed no ID mapping when creating the tar.uses), so the tar headers are converted back to the container IDs. Containers that do not use a user namespace have an empty mapping, so their behavior does not change.