spiegel_podman/pkg/specgen/generate
Paul Holzinger 83863a6863
specgen: parse devices even with privileged set
When a users asks for specific devices we should still add them and not
ignore them just because privileged adds all of them.

Most notably if you set --device /dev/null:/dev/test you expect
/dev/test in the container, however as we ignored them this was not the
case. Another side effect is that the input was not validated at at all.
This leads to confusion as descriped in the issue.

Fixes #23132

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-07-01 11:46:34 +02:00
..
kube Add the ability to automount images as volumes via play 2024-04-25 14:12:27 -04:00
config_common.go chore: delete obsolete // +build lines 2024-01-04 11:53:38 +02:00
config_common_test.go chore: delete obsolete // +build lines 2024-01-04 11:53:38 +02:00
config_freebsd.go Bump tags.cncf.io/container-device-interface to v0.7.1 2024-04-06 12:25:26 +02:00
config_linux.go pkg/specgen: use fileutils.(Le|E)xists 2024-04-19 09:52:14 +02:00
config_linux_seccomp.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
config_linux_test.go chore: delete obsolete // +build lines 2024-01-04 11:53:38 +02:00
container.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
container_create.go Add support for image volume subpaths 2024-04-25 14:12:27 -04:00
namespaces.go Merge pull request #21512 from Luap99/pasta-netname-removal 2024-02-08 17:17:55 +00:00
namespaces_freebsd.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
namespaces_linux.go pkg/specgen: use fileutils.(Le|E)xists 2024-04-19 09:52:14 +02:00
oci.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
oci_freebsd.go Add volumes-from support using annotation in kube yaml 2024-02-14 07:31:43 -08:00
oci_linux.go specgen: parse devices even with privileged set 2024-07-01 11:46:34 +02:00
pause_image.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
pod_create.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
pod_create_test.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
ports.go Replace golang.org/x/exp/slices with slices from std 2024-04-23 11:16:40 +02:00
ports_bench_test.go chore: delete obsolete // +build lines 2024-01-04 11:53:38 +02:00
ports_test.go chore: delete obsolete // +build lines 2024-01-04 11:53:38 +02:00
security_freebsd.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
security_linux.go Replace golang.org/x/exp/slices with slices from std 2024-04-23 11:16:40 +02:00
storage.go pkg/specgen: use fileutils.(Le|E)xists 2024-04-19 09:52:14 +02:00
storage_freebsd.go chore: delete obsolete // +build lines 2024-01-04 11:53:38 +02:00
storage_linux.go chore: delete obsolete // +build lines 2024-01-04 11:53:38 +02:00
validate_freebsd.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
validate_linux.go pkg/specgen: use fileutils.(Le|E)xists 2024-04-19 09:52:14 +02:00