security

package
v0.12.0-rc.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 1, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Rendered for windows/amd64

Index

Constants

View Source
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

)

Variables

This section is empty.

Functions

func GrantVmGroupAccess

func GrantVmGroupAccess(name string) error

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

func GrantVmGroupAccessWithMask(name string, access accessMask) error

GrantVmGroupAccessWithMask sets the desired DACL for a specified file or directory.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL