Conversation
|
Thanks for opening this — it has been seen, and it is queued. This note is automated, but it is not a brush-off: it exists so you know where your PR stands instead of having to guess from silence. Current review status: working through a backlog. What that means for this PR, concretely:
Things that will genuinely speed it up whenever review does happen:
If this fixes a bug, a reproduction we can run is worth more than a description of the symptom. Thanks for contributing, and sorry in advance for the wait. |
Signed-off-by: DavidHLP <144919470+DavidHLP@users.noreply.github.com>
848ce77 to
00411ce
Compare
Verification updateI rebuilt the patched Results:
The reported direct-command exit-code discrepancy is not reproducible with this binary: the rejected user-owned-symlink case returns The PR workflow still has one underlying failing job, |
Signed-off-by: DavidHLP <lysf15520112973@163.com>
|
Follow-up for commit The alias list is now Linux-only for I rebuilt this new head in Docker and reran the issue matrix:
The Linux fix remains minimal and the existing |
Signed-off-by: DavidHLP <lysf15520112973@163.com>
Summary
This draft PR addresses the install-staging failure described in #2175.
/tmp,/var, and/home) during POSIX activation path walking.O_NOFOLLOWwalk.Reproduction
On an Arch Linux host with a btrfs project filesystem, using Docker 29.7.2 and an Ubuntu Noble image built from
test-infrastructure/Dockerfile, v0.10.8 failed when:/tmpwas replaced by a root-owned symlink to/tmp-real;TMPDIR.The observed error was:
Root cause
cli.cstages to/tmp/cbm-install-XXXXXXwhen the target parent is absent. On Linux,activation_posix_walk_path()did not canonicalize trusted system aliases before secure traversal.O_NOFOLLOWtherefore rejected the root-owned/tmpalias even though it is a legitimate system-managed layout.Validation
activation_transaction,clisuites: 338 passed./tmpalias: successful./tmpalias: successful./home -> /var/home: successful.git diff --check: passes.Scope and review request
I did not test the exact Fedora bootc/SELinux image. I also could not reproduce the issue report's exit code 0: the controlled direct binary returned 1, and the current
mainpropagates the handler result. Please review whether this minimal trusted-alias rule matches the project's intended Linux policy, and advise whether the exit-code discrepancy needs a separate fix.Fixes #2175