spiegel_podman/pkg/util
Jake Correnti 8533ea0004 Privileged containers can now restart if the host devices change
If a privileged container is running, stops, and the devices on the host
change, such as a USB device is unplugged, then a container would no
longer start. Previously, the devices from the host were only being
added to the container once: when the container was created. Now, this
happens every time the container starts.

I did this by adding a boolean to the container config that indicates
whether to mount all of the devices or not, which can be set via an option.

During spec generation, if the `MountAllDevices` option is set in the
container config, all host devices are added to the container.

Additionally, a couple of functions from `pkg/specgen/generate/config_linux.go`
were moved into `pkg/util/utils_linux.go` as they were needed in
multiple packages.

Closes #13899

Signed-off-by: Jake Correnti <jcorrenti13@gmail.com>
2022-06-06 14:14:22 -04:00
..
camelcase linter: enable wastedassign 2022-03-22 13:04:34 +01:00
filters.go bump go module to version 4 2022-01-18 12:47:07 +01:00
filters_test.go Unification of until filter across list/prune endpoints 2021-03-24 00:56:00 +01:00
kube.go Add support for play/generate kube volumes 2021-04-09 14:01:13 -06:00
mountOpts.go run, mount: allow setting driver specific option using volume-opt 2022-04-12 12:30:09 +05:30
mountOpts_linux.go Turn off 'noexec' option by default for named volumes 2020-05-20 16:48:20 -04:00
mountOpts_other.go go fmt: use go 1.18 conditional-build syntax 2022-03-18 09:11:53 +01:00
utils.go Fix codespell errors 2022-05-25 05:56:29 -04:00
utils_darwin.go go fmt: use go 1.18 conditional-build syntax 2022-03-18 09:11:53 +01:00
utils_linux.go Privileged containers can now restart if the host devices change 2022-06-06 14:14:22 -04:00
utils_linux_test.go Fix up errors found by codespell 2020-09-11 06:14:25 -04:00
utils_supported.go go fmt: use go 1.18 conditional-build syntax 2022-03-18 09:11:53 +01:00
utils_test.go Merge pull request #11218 from cdoern/untilBug 2021-08-26 10:12:09 -04:00
utils_unsupported.go go fmt: use go 1.18 conditional-build syntax 2022-03-18 09:11:53 +01:00
utils_windows.go Add support for machine events on Windows 2022-05-12 14:41:26 -05:00