]> git.feebdaed.xyz Git - 0xmirror/podman.git/commit
prevent non hyper-v admin users to execute machine commands
authorlstocchi <lstocchi@redhat.com>
Mon, 1 Dec 2025 15:49:51 +0000 (16:49 +0100)
committerlstocchi <lstocchi@redhat.com>
Tue, 2 Dec 2025 15:19:31 +0000 (16:19 +0100)
commit1bd51314ffbcb38a63e80ec14f648ae860ed4e23
treebefc98138f91f62ae7a6e78a298a8cf6e9665846
parent66bad3d2dfed82ccb69f4722ea07480fd8d1a0cb
prevent non hyper-v admin users to execute machine commands

Update GetAll() and GetByVMType() to add a check to prevent non hyper-v admin users to
interact with hyperv machines.
Users can work with hyperv machines only with elevated rights or if
members of the hyperv administrators group

Signed-off-by: lstocchi <lstocchi@redhat.com>
pkg/machine/hyperv/hutil.go
pkg/machine/provider/platform_windows.go