mirror of
https://github.com/containers/podman.git
synced 2025-11-01 19:21:04 +08:00
hyperv: error if not admin
creating vsocks in windows requires admin privileges. there could be some workarounds made in the future,but the general deal has always been, you need to be admin. lets enforce this with an error until those work-arounds can be implemented. Signed-off-by: Brent Baude <bbaude@redhat.com>
This commit is contained in:
@ -96,7 +96,7 @@ func winVersionAtLeast(major uint, minor uint, build uint) bool {
|
||||
return true
|
||||
}
|
||||
|
||||
func hasAdminRights() bool {
|
||||
func HasAdminRights() bool {
|
||||
var sid *windows.SID
|
||||
|
||||
// See: https://coolaj86.com/articles/golang-and-windows-and-admins-oh-my/
|
||||
|
||||
Reference in New Issue
Block a user