microsoft / go-winio

Win32 IO-related utilities for Go
MIT License
946 stars 180 forks source link

Extend GrantVmGroupAccess to support write/execute/all permissions. #243

Closed anmaxvl closed 2 years ago

anmaxvl commented 2 years ago

Add masks for GENERIC_WRITE, GENERIC_EXECUTE, GENERIC_ALL and update function signatures accordingly.

Add unit tests for file and directory grant access.

Signed-off-by: Maksim An maksiman@microsoft.com

kevpar commented 2 years ago

Given how VM-specific this code is, maybe we should just move it under internal in hcsshim instead?

anmaxvl commented 2 years ago

Given how VM-specific this code is, maybe we should just move it under internal in hcsshim instead?

yeah, sure. I can do that.

anmaxvl commented 2 years ago

Port PR: https://github.com/microsoft/hcsshim/pull/1347