package security
import "github.com/Microsoft/hcsshim/internal/security"
Index ¶
- Constants
- func GrantVmGroupAccess(name string) error
- func GrantVmGroupAccessWithMask(name string, access accessMask) error
Constants ¶
const ( AccessMaskNone accessMask = 0 AccessMaskRead accessMask = 1 << 31 // GENERIC_READ AccessMaskWrite accessMask = 1 << 30 // GENERIC_WRITE AccessMaskExecute accessMask = 1 << 29 // GENERIC_EXECUTE AccessMaskAll accessMask = 1 << 28 // GENERIC_ALL )
Functions ¶
func GrantVmGroupAccess ¶
GrantVmGroupAccess sets the DACL for a specified file or directory to include Grant ACE entries for the VM Group SID. This is a golang re- implementation of the same function in vmcompute, just not exported in RS5. Which kind of sucks. Sucks a lot :/
func GrantVmGroupAccessWithMask ¶
GrantVmGroupAccessWithMask sets the desired DACL for a specified file or directory.
Source Files ¶
grantvmgroupaccess.go syscall_windows.go zsyscall_windows.go
- Version
- v0.13.0 (latest)
- Published
- Apr 21, 2025
- Platform
- windows/amd64
- Imports
- 5 packages
- Last checked
- 12 hours ago –
Tools for package owners.