spiegel_podman/pkg
lstocchi d2ea5a3fd0
prevent starting/stopping legacy Hyper-v machines when not elevated
Podman 5.x and earlier required to run as admin to work with Hyper-v.
Starting from Podman 6 this is not mandatory anymore as Registry
entries are handled differently. However, it may
happen the user have a legacy machine running when switching to Podman 6
or starts an old machine in elevated mode and then tries to stop it as a
normal user with Podman 6. If that happens the system will end up in a corrupted state
as the gvproxy process will not be stopped.
To prevent such scenario and issues, this commit maintains the original
behavior Podman 5.x has. Legacy Hyper-v machines needs to be handled
with elevated rights.

Signed-off-by: lstocchi <lstocchi@redhat.com>
2026-01-09 08:07:00 +01:00
..
annotations enable gofumpt formatter 2025-11-11 12:32:46 +01:00
api Merge pull request #27696 from MayorFaj/fix-logs-timestamp-precision 2025-12-17 15:41:43 -05:00
auth Ignore auth header with empty JSON object 2025-11-06 17:39:56 +01:00
autoupdate enable gofumpt formatter 2025-11-11 12:32:46 +01:00
bindings extract shared TTY handling code into helper function 2026-01-07 10:19:38 +05:30
channel bump golangci-lint to v1.50.1 2022-12-15 13:39:56 +01:00
checkpoint Remove deprecated fields ctrConfig.[StaticIP,StaticMAC] 2025-11-12 15:35:29 -05:00
copy enable gofumpt formatter 2025-11-11 12:32:46 +01:00
criu lint: reenable revive unused-parameter check 2025-10-01 10:42:08 -04:00
ctime update golangci/golangci-lint to v1.63.4 2025-01-07 15:48:53 +01:00
domain Remove network-cmd-path 2025-12-19 16:52:49 -05:00
emulation fix(emulation): handle fs.ErrNotExist in registeredBinfmtMisc 2025-09-11 16:56:13 +08:00
env run modernize -fix ./... 2025-09-10 16:17:04 +02:00
errorhandling pkg/errorhandling: remove deadcode 2025-06-26 19:37:14 +02:00
farm Fix missing newlines in stderr error messages 2025-12-17 07:36:04 -05:00
fileserver Bump Go version to v6 2025-10-23 11:00:15 -04:00
inspect Bump Go version to v6 2025-10-23 11:00:15 -04:00
k8s.io Fix deprecation notice to make gocritic happy. 2025-11-12 15:35:29 -05:00
logiface run modernize -fix ./... 2025-09-10 16:17:04 +02:00
lookup Cease using deprecated runc userlookup 2024-02-02 11:02:43 -05:00
machine prevent starting/stopping legacy Hyper-v machines when not elevated 2026-01-09 08:07:00 +01:00
namespaces use strings.SplitSeq where possible 2025-09-10 16:17:04 +02:00
parallel enable gofumpt formatter 2025-11-11 12:32:46 +01:00
pidhandle lint: reenable revive unused-parameter check 2025-10-01 10:42:08 -04:00
ps enable gofumpt formatter 2025-11-11 12:32:46 +01:00
rctl use strings.SplitSeq where possible 2025-09-10 16:17:04 +02:00
rootless rootless_linux.c: use shortcut for system commands 2025-11-25 19:52:24 +01:00
seccomp pkg: switch to golang native error wrapping 2022-07-08 08:54:47 +02:00
selinux Fix SELinux functions names to not be repetitive 2020-04-23 15:57:34 -04:00
signal enable gofumpt formatter 2025-11-11 12:32:46 +01:00
specgen Merge pull request #27791 from ninja-quokka/kube_play_image_validation 2025-12-22 14:43:56 -05:00
specgenutil vendor: update common, image, storage to main 2025-11-21 14:24:29 +01:00
specgenutilexternal enable gofumpt formatter 2025-11-11 12:32:46 +01:00
syncmap Add syncmap package and use it for graph stop/remove 2025-02-17 14:32:34 -05:00
systemd enable gofumpt formatter 2025-11-11 12:32:46 +01:00
terminal Fix Lint on Windows and enable the job 2024-02-20 08:06:18 -05:00
trust enable gofumpt formatter 2025-11-11 12:32:46 +01:00
util libpod/container_internal.go: util.SizeOfPath -> directory.Size 2025-11-12 15:35:29 -05:00