spiegel_podman/pkg/util
Giuseppe Scrivano f172ff789b
rootless: use nsfs file handles to persist namespaces
use name_to_handle_at and open_by_handle_at to persist rootless
namespaces without needing a pause process.

The namespace file handles are stored in a file and can be used to
rejoin the namespaces, as long as the namespaces still exist.

Fall back to the pause process approach only when the kernel doesn't
support nsfs handles (EOPNOTSUPP).

The feature is currently only enabled when the PODMAN_NO_PAUSE_PROCESS
environment variable is set.

These changes in the kernel are required (landed in Linux 6.18):

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=3ab378cfa793

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2026-01-20 18:41:59 +01:00
..
tlsutil Implement TLS API Support 2025-09-26 09:09:54 -06:00
changes.go run modernize -fix ./... 2025-09-10 16:17:04 +02:00
changes_test.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
filters.go Replace strings.SplitN with strings.Cut 2024-01-11 13:50:15 +00:00
filters_test.go Switch common, storage and image to monorepo. 2025-09-01 12:33:04 +02:00
kube.go Kube Play - allow creating image based volumes 2024-01-24 11:55:29 +02:00
mount_opts.go enable gofumpt formatter 2025-11-11 12:32:46 +01:00
mount_opts_linux.go util: rename files to snake case 2024-03-21 11:33:02 +01:00
mount_opts_other.go enable gofumpt formatter 2025-11-11 12:32:46 +01:00
rlimit.go Clamp rootless rlimits to host on format 2025-11-20 22:59:50 -08:00
utils.go libpod/container_internal.go: util.SizeOfPath -> directory.Size 2025-11-12 15:35:29 -05:00
utils_darwin.go chore: delete obsolete // +build lines 2024-01-04 11:53:38 +02:00
utils_freebsd.go lint: reenable revive unused-parameter check 2025-10-01 10:42:08 -04:00
utils_linux.go enable gofumpt formatter 2025-11-11 12:32:46 +01: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 rootless: use nsfs file handles to persist namespaces 2026-01-20 18:41:59 +01:00
utils_test.go rootless: use nsfs file handles to persist namespaces 2026-01-20 18:41:59 +01:00
utils_unsupported.go lint: reenable revive unused-parameter check 2025-10-01 10:42:08 -04:00
utils_windows.go rootless: use nsfs file handles to persist namespaces 2026-01-20 18:41:59 +01:00