mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-08-13 04:09:36 +00:00
While mounting virtual console devices in a systemd container is a
recipe for disaster (I experienced it first hand), mounting serial
console devices, modems, and others should still be done by default
for privileged systemd-based containers.
v2, addressing the review from @fho:
- use backticks in the regular expression to remove backslashes
- pre-compile the regex at the package level
- drop IsVirtualTerminalDevice (not needed for a one-liner)
v3, addressing the review from @fho and @rhatdan:
- re-introduce a private function for matching the device names
- use path.Match rather than a regex not to slow down startup time
Closes #16925.
Fixes:
|
||
|---|---|---|
| .. | ||
| camelcase | ||
| filters.go | ||
| filters_test.go | ||
| kube.go | ||
| mountOpts.go | ||
| mountOpts_linux.go | ||
| mountOpts_other.go | ||
| utils.go | ||
| utils_darwin.go | ||
| utils_freebsd.go | ||
| utils_linux.go | ||
| utils_linux_test.go | ||
| utils_supported.go | ||
| utils_test.go | ||
| utils_unsupported.go | ||
| utils_windows.go | ||