Files
podman/pkg
Garv Changrani 4bbbca431b Fix image scp from inaccessible directories
Problem:
When image scp transfers an image between local users, the save, load,
and tag subprocesses inherit the caller's working directory. Running
the transfer from a directory such as /root can fail because the
destination user cannot access that directory during rootless
initialization.

Fix:
Use the caller's physical directory to preserve relative paths and
avoid inaccessible symlinks in PWD. Return working-directory lookup
errors.

If subprocess startup fails with a permission error, retry once from /.
Restrict the retry to fork/exec errors so a Podman command that has
already started is never executed a second time. For the retry, create
a fresh command with the same credentials, environment, and output
handling.

Tests:
Extend the transfer test to use an inaccessible directory.
Run its sudo checks from /.

Add coverage for relative and absolute configuration paths and
missing-image errors.

Fixes #24247

Signed-off-by: Garv  Changrani <154041471+Garvity@users.noreply.github.com>
2026-10-29 12:24:53 +00:00
..
2026-09-04 16:30:10 +02:00
2026-03-09 11:09:23 +01:00
2026-09-04 11:53:04 +02:00
2025-09-10 16:17:04 +02:00
2026-08-14 01:35:03 +05:30
2025-09-10 16:17:04 +02:00
2026-08-14 01:35:03 +05:30
2025-11-11 12:32:46 +01:00