spiegel_podman/libpod
Paul Holzinger 7ce2e00ab1 libpod: simplify resolveWorkDir()
The code checks for isPathOnVolume and isPathOnMount so we can just use
the SecureJoin here directly to check for path existance.

Then instead of walking symlinks and trying to guess if they are on a
mount just assume if it is a link (path is different from the normal
joined one) then don't error out early and let the OCI runtime deal with
it. The runtime does produce a less readable error but it still fails
and we have much less fragile code.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-12-04 16:09:56 +00:00
..
define run modernize -fix ./... 2025-09-10 16:17:04 +02:00
driver Switch common, storage and image to monorepo. 2025-09-01 12:33:04 +02:00
events fileperms: newer Go 1.13+ octal literal format 2025-10-16 14:11:29 -04:00
layers Switch common, storage and image to monorepo. 2025-09-01 12:33:04 +02:00
linkmode chore: delete obsolete // +build lines 2024-01-04 11:53:38 +02:00
lock fileperms: newer Go 1.13+ octal literal format 2025-10-16 14:11:29 -04:00
logs run modernize -fix ./... 2025-09-10 16:17:04 +02:00
plugin inline some conditionals 2025-09-10 16:17:04 +02:00
shutdown Revert "libpod: remove shutdown.Unregister()" 2024-11-27 08:09:50 -05:00
boltdb_state.go Warn on boltdb use 2025-10-22 09:24:43 -04:00
boltdb_state_internal.go fileperms: newer Go 1.13+ octal literal format 2025-10-16 14:11:29 -04:00
common_test.go Switch common, storage and image to monorepo. 2025-09-01 12:33:04 +02:00
container.go run modernize -fix ./... 2025-09-10 16:17:04 +02:00
container_api.go lint: reenable revive unused-parameter check 2025-10-01 10:42:08 -04:00
container_commit.go inline some conditionals 2025-09-10 16:17:04 +02:00
container_config.go run modernize -fix ./... 2025-09-10 16:17:04 +02:00
container_copy_common.go Switch common, storage and image to monorepo. 2025-09-01 12:33:04 +02:00
container_copy_freebsd.go Mount volumes before copying into a container 2024-11-27 08:09:50 -05:00
container_copy_linux.go Mount volumes before copying into a container 2024-11-27 08:09:50 -05:00
container_exec.go lint: reenable revive unused-parameter check 2025-10-01 10:42:08 -04:00
container_freebsd.go chore: delete obsolete // +build lines 2024-01-04 11:53:38 +02:00
container_graph.go lint: reenable revive unused-parameter check 2025-10-01 10:42:08 -04:00
container_graph_test.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
container_inspect.go use maps.Clone() over Copy() when possible 2025-09-10 16:17:05 +02:00
container_inspect_freebsd.go libpod: fix HostConfig.Devices output from 'podman inspect' on FreeBSD 2024-09-02 11:21:35 +01:00
container_inspect_linux.go Switch common, storage and image to monorepo. 2025-09-01 12:33:04 +02:00
container_internal.go fileperms: newer Go 1.13+ octal literal format 2025-10-16 14:11:29 -04:00
container_internal_common.go libpod: simplify resolveWorkDir() 2025-12-04 16:09:56 +00:00
container_internal_freebsd.go lint: reenable revive unused-parameter check 2025-10-01 10:42:08 -04:00
container_internal_linux.go [v5.7] fix lint issues with github.com/cyphar/filepath-securejoin 2025-11-07 10:58:16 -05:00
container_internal_linux_test.go libpod: --user works with --hostuser entries 2025-04-07 18:11:06 +02:00
container_internal_test.go Switch common, storage and image to monorepo. 2025-09-01 12:33:04 +02:00
container_linux.go chore: delete obsolete // +build lines 2024-01-04 11:53:38 +02:00
container_log.go libpod: log file use Wait() over event API 2024-11-01 18:53:08 +01:00
container_log_linux.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
container_log_unsupported.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
container_path_resolution.go Mount volumes before copying into a container 2024-11-27 08:09:50 -05:00
container_path_resolution_test.go chore: delete obsolete // +build lines 2024-01-04 11:53:38 +02:00
container_stat_common.go Mount volumes before copying into a container 2024-11-27 08:09:50 -05:00
container_stat_freebsd.go chore: delete obsolete // +build lines 2024-01-04 11:53:38 +02:00
container_stat_linux.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
container_top_freebsd.go libpod: Fix "top" support on FreeBSD 2025-09-02 16:17:18 +00:00
container_top_linux.c libpod/container_top_linux.c: fix missing header 2024-06-27 10:50:17 +02:00
container_top_linux.go use strings.SplitSeq where possible 2025-09-10 16:17:04 +02:00
container_top_unsupported.go chore: delete obsolete // +build lines 2024-01-04 11:53:38 +02:00
container_validate.go Switch common, storage and image to monorepo. 2025-09-01 12:33:04 +02:00
diff.go Switch common, storage and image to monorepo. 2025-09-01 12:33:04 +02:00
doc.go document that using libpod package directly is not supported 2022-03-23 19:05:29 +01:00
events.go Fix HealthCheck log destination, count, and size defaults 2025-03-12 21:27:00 +01:00
healthcheck.go fileperms: newer Go 1.13+ octal literal format 2025-10-16 14:11:29 -04:00
healthcheck_config.go Switch common, storage and image to monorepo. 2025-09-01 12:33:04 +02:00
healthcheck_linux.go Switch common, storage and image to monorepo. 2025-09-01 12:33:04 +02:00
healthcheck_nosystemd_linux.go lint: reenable revive unused-parameter check 2025-10-01 10:42:08 -04:00
healthcheck_unsupported.go lint: reenable revive unused-parameter check 2025-10-01 10:42:08 -04:00
info.go run modernize -fix ./... 2025-09-10 16:17:04 +02:00
info_freebsd.go lint: reenable revive unused-parameter check 2025-10-01 10:42:08 -04:00
info_linux.go Switch common, storage and image to monorepo. 2025-09-01 12:33:04 +02:00
info_test.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
kube.go lint: reenable revive unused-parameter check 2025-10-01 10:42:08 -04:00
mounts_linux.go chore: delete obsolete // +build lines 2024-01-04 11:53:38 +02:00
networking_common.go lint: reenable revive unused-parameter check 2025-10-01 10:42:08 -04:00
networking_freebsd.go lint: reenable revive unused-parameter check 2025-10-01 10:42:08 -04:00
networking_linux.go Switch common, storage and image to monorepo. 2025-09-01 12:33:04 +02:00
networking_linux_test.go run modernize -fix ./... 2025-09-10 16:17:04 +02:00
networking_machine.go run modernize -fix ./... 2025-09-10 16:17:04 +02:00
networking_pasta_linux.go Switch common, storage and image to monorepo. 2025-09-01 12:33:04 +02:00
networking_slirp4netns.go Switch common, storage and image to monorepo. 2025-09-01 12:33:04 +02:00
oci.go Switch common, storage and image to monorepo. 2025-09-01 12:33:04 +02:00
oci_conmon.go chore: delete obsolete // +build lines 2024-01-04 11:53:38 +02:00
oci_conmon_attach_common.go Switch common, storage and image to monorepo. 2025-09-01 12:33:04 +02:00
oci_conmon_attach_freebsd.go chore: delete obsolete // +build lines 2024-01-04 11:53:38 +02:00
oci_conmon_attach_linux.go chore: delete obsolete // +build lines 2024-01-04 11:53:38 +02:00
oci_conmon_common.go Merge pull request #27310 from mheon/default-runtime-flags 2025-10-20 10:57:46 +00:00
oci_conmon_exec_common.go fileperms: newer Go 1.13+ octal literal format 2025-10-16 14:11:29 -04:00
oci_conmon_exec_freebsd.go lint: reenable revive unused-parameter check 2025-10-01 10:42:08 -04:00
oci_conmon_exec_linux.go Switch common, storage and image to monorepo. 2025-09-01 12:33:04 +02:00
oci_conmon_freebsd.go lint: reenable revive unused-parameter check 2025-10-01 10:42:08 -04:00
oci_conmon_linux.go libpod/oci_conmon_linux.go: fix false postive in linter 2025-09-10 16:17:05 +02:00
oci_missing.go lint: reenable revive unused-parameter check 2025-10-01 10:42:08 -04:00
oci_util.go run modernize -fix ./... 2025-09-10 16:17:04 +02:00
options.go fileperms: newer Go 1.13+ octal literal format 2025-10-16 14:11:29 -04:00
pod.go run modernize -fix ./... 2025-09-10 16:17:04 +02:00
pod_api.go Switch common, storage and image to monorepo. 2025-09-01 12:33:04 +02:00
pod_internal.go Switch common, storage and image to monorepo. 2025-09-01 12:33:04 +02:00
pod_internal_freebsd.go chore: delete obsolete // +build lines 2024-01-04 11:53:38 +02:00
pod_internal_linux.go Switch common, storage and image to monorepo. 2025-09-01 12:33:04 +02:00
pod_status.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
pod_top_freebsd.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
pod_top_linux.go run modernize -fix ./... 2025-09-10 16:17:04 +02:00
reset.go Switch common, storage and image to monorepo. 2025-09-01 12:33:04 +02:00
rlimit_int64.go chore: delete obsolete // +build lines 2024-01-04 11:53:38 +02:00
rlimit_uint64.go chore: delete obsolete // +build lines 2024-01-04 11:53:38 +02:00
runtime.go fileperms: newer Go 1.13+ octal literal format 2025-10-16 14:11:29 -04:00
runtime_cstorage.go Switch common, storage and image to monorepo. 2025-09-01 12:33:04 +02:00
runtime_ctr.go fileperms: newer Go 1.13+ octal literal format 2025-10-16 14:11:29 -04:00
runtime_ctr_freebsd.go chore: delete obsolete // +build lines 2024-01-04 11:53:38 +02:00
runtime_ctr_linux.go chore: delete obsolete // +build lines 2024-01-04 11:53:38 +02:00
runtime_freebsd.go lint: reenable revive unused-parameter check 2025-10-01 10:42:08 -04:00
runtime_img.go Switch common, storage and image to monorepo. 2025-09-01 12:33:04 +02:00
runtime_linux.go fileperms: newer Go 1.13+ octal literal format 2025-10-16 14:11:29 -04:00
runtime_migrate.go libpod: fix a confusing error message from 'podman system reset' on FreeBSD 2025-02-11 15:13:29 +00:00
runtime_migrate_freebsd.go libpod: fix a confusing error message from 'podman system reset' on FreeBSD 2025-02-11 15:13:29 +00:00
runtime_migrate_linux.go libpod: fix a confusing error message from 'podman system reset' on FreeBSD 2025-02-11 15:13:29 +00:00
runtime_migrate_unsupported.go libpod: fix a confusing error message from 'podman system reset' on FreeBSD 2025-02-11 15:13:29 +00:00
runtime_pod.go lint: reenable revive unused-parameter check 2025-10-01 10:42:08 -04:00
runtime_pod_common.go lint: reenable revive unused-parameter check 2025-10-01 10:42:08 -04:00
runtime_pod_freebsd.go lint: reenable revive unused-parameter check 2025-10-01 10:42:08 -04:00
runtime_pod_linux.go Switch common, storage and image to monorepo. 2025-09-01 12:33:04 +02:00
runtime_pre_go1.20.go chore: delete obsolete // +build lines 2024-01-04 11:53:38 +02:00
runtime_renumber.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
runtime_test.go chore: delete obsolete // +build lines 2024-01-04 11:53:38 +02:00
runtime_volume.go libpod: remove duplicated HasVolume() check 2024-08-15 11:07:27 +02:00
runtime_volume_common.go fileperms: newer Go 1.13+ octal literal format 2025-10-16 14:11:29 -04:00
runtime_worker.go create runtime's worker queue before queuing any job 2024-07-09 11:15:29 +02:00
service.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
sqlite_state.go fileperms: newer Go 1.13+ octal literal format 2025-10-16 14:11:29 -04:00
sqlite_state_internal.go Switch common, storage and image to monorepo. 2025-09-01 12:33:04 +02:00
state.go Switch common, storage and image to monorepo. 2025-09-01 12:33:04 +02:00
state_test.go lint: reenable revive unused-parameter check 2025-10-01 10:42:08 -04:00
stats_common.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
stats_freebsd.go libpod: Implement getOnlineCPUs() on FreeBSD 2025-09-18 14:24:35 +00:00
stats_linux.go Switch common, storage and image to monorepo. 2025-09-01 12:33:04 +02:00
storage.go Switch common, storage and image to monorepo. 2025-09-01 12:33:04 +02:00
util.go run modernize -fix ./... 2025-09-10 16:17:04 +02:00
util_freebsd.go lint: reenable revive unused-parameter check 2025-10-01 10:42:08 -04:00
util_linux.go Switch common, storage and image to monorepo. 2025-09-01 12:33:04 +02:00
util_linux_test.go lint: reenable revive unused-parameter check 2025-10-01 10:42:08 -04:00
util_test.go libpod: fix mount order for "/" volume 2025-05-20 15:52:27 +02:00
volume.go run modernize -fix ./... 2025-09-10 16:17:04 +02:00
volume_inspect.go run modernize -fix ./... 2025-09-10 16:17:04 +02:00
volume_internal.go Only stop chowning volumes once they're not empty 2024-05-22 17:47:01 -04:00
volume_internal_common.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
volume_internal_freebsd.go chore: delete obsolete // +build lines 2024-01-04 11:53:38 +02:00
volume_internal_linux.go chore: delete obsolete // +build lines 2024-01-04 11:53:38 +02:00