spiegel_podman/pkg/specgen/generate
Paul Holzinger 0fa3043415
add missing O_CLOEXEC to open calls
The go std os package to will always make sure to use O_CLOEXEC, however
in cases where we directly call unix.Open() we need to pass that flag
explicitly.

I looked at this as there was a report of a leaked fd on the pasta list,
though I am not sure this will address it.

But anyway doing this should be rather safe and avoid leaks into other
processes.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
(cherry picked from commit d20933df02)
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2026-04-09 14:23:52 +02:00
..
kube [play_kube] Add validation to container image field 2026-02-06 15:36:47 -05:00
config_common.go Fix: Improve error message for empty device modes in API requests 2025-07-31 16:24:29 +00:00
config_common_test.go Fix: Improve error message for empty device modes in API requests 2025-07-31 16:24:29 +00:00
config_freebsd.go lint: reenable revive unused-parameter check 2025-10-01 10:42:08 -04:00
config_linux.go add missing O_CLOEXEC to open calls 2026-04-09 14:23:52 +02:00
config_linux_seccomp.go Switch common, storage and image to monorepo. 2025-09-01 12:33:04 +02:00
config_linux_test.go chore: delete obsolete // +build lines 2024-01-04 11:53:38 +02:00
container.go run modernize -fix ./... 2025-09-10 16:17:04 +02:00
container_create.go Switch common, storage and image to monorepo. 2025-09-01 12:33:04 +02:00
namespaces.go fix: improve userns validation when joining pods 2026-02-06 15:36:47 -05:00
namespaces_freebsd.go lint: reenable revive unused-parameter check 2025-10-01 10:42:08 -04:00
namespaces_linux.go Switch common, storage and image to monorepo. 2025-09-01 12:33:04 +02:00
oci.go Clamp rootless rlimits to host on format 2026-02-06 15:36:47 -05:00
oci_freebsd.go Clamp rootless rlimits to host on format 2026-02-06 15:36:47 -05:00
oci_linux.go Clamp rootless rlimits to host on format 2026-02-06 15:36:47 -05:00
pause_image.go Switch common, storage and image to monorepo. 2025-09-01 12:33:04 +02:00
pod_create.go Replace podman pause image with rootfs. 2025-04-17 08:36:27 +02:00
pod_create_test.go Switch common, storage and image to monorepo. 2025-09-01 12:33:04 +02:00
ports.go run modernize -fix ./... 2025-09-10 16:17:04 +02:00
ports_bench_test.go run modernize -fix ./... 2025-09-10 16:17:04 +02:00
ports_test.go Switch common, storage and image to monorepo. 2025-09-01 12:33:04 +02:00
security_freebsd.go lint: reenable revive unused-parameter check 2025-10-01 10:42:08 -04:00
security_linux.go run modernize -fix ./... 2025-09-10 16:17:04 +02:00
storage.go run modernize -fix ./... 2025-09-10 16:17:04 +02:00
storage_freebsd.go Switch common, storage and image to monorepo. 2025-09-01 12:33:04 +02:00
storage_linux.go lint: reenable revive unused-parameter check 2025-10-01 10:42:08 -04:00
validate_freebsd.go lint: reenable revive unused-parameter check 2025-10-01 10:42:08 -04:00
validate_linux.go Switch common, storage and image to monorepo. 2025-09-01 12:33:04 +02:00