podman/pkg/util
Giuseppe Scrivano 419efb9eb5
util: specify a not empty pause dir for root too
commit b3014c1c69 changed
GetRootlessRuntimeDir() to return an empty string for root, so that
its value is not exported as XDG_RUNTIME_DIR, and other programs like
crun can use a better default.

Now GetRootlessPauseProcessPidPath() uses homedir.GetRuntimeDir().
The homedir.GetRuntimeDir() function returns a value also when running
as root so it can be used inside a nested Podman.

Closes: https://github.com/containers/podman/issues/22327

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2024-05-06 12:14:00 +02:00
..
camelcase Fix typos 2023-02-11 18:23:24 +01:00
filters.go Replace strings.SplitN with strings.Cut 2024-01-11 13:50:15 +00:00
filters_test.go filters: use new FilterID function from c/common 2023-06-13 17:49:41 +02:00
kube.go Kube Play - allow creating image based volumes 2024-01-24 11:55:29 +02:00
mount_opts.go util: use private propagation with bind 2024-03-21 11:33:58 +01:00
mount_opts_linux.go util: rename files to snake case 2024-03-21 11:33:02 +01:00
mount_opts_other.go util: rename files to snake case 2024-03-21 11:33:02 +01:00
utils.go pkg/util: use fileutils.(Le|E)xists 2024-04-19 09:52:14 +02:00
utils_darwin.go chore: delete obsolete // +build lines 2024-01-04 11:53:38 +02:00
utils_freebsd.go chore: delete obsolete // +build lines 2024-01-04 11:53:38 +02:00
utils_linux.go pkg/util: FindDeviceNodes() ignore ENOENT errors 2024-04-03 16:44:14 +02:00
utils_linux_test.go Match VT device paths to be blocked from mounting exactly 2023-01-28 05:18:40 -05:00
utils_supported.go util: specify a not empty pause dir for root too 2024-05-06 12:14:00 +02:00
utils_test.go util: specify a not empty pause dir for root too 2024-05-06 12:14:00 +02:00
utils_unsupported.go chore: delete obsolete // +build lines 2024-01-04 11:53:38 +02:00
utils_windows.go chore: delete obsolete // +build lines 2024-01-04 11:53:38 +02:00