Help us shape the future of Go! Take the 2026 Go Developer Survey

windows

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2026 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Overview

Package windows owns the private runtime DACL grant policy.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Validate

func Validate(account, owner string, present, null bool, entries []Entry, field string) error

Validate restricts grants without computing ordered effective access. SYSTEM and Administrators retain their privileged host-management access.

func ValidateAncestor

func ValidateAncestor(account, owner string, present, null bool, entries []Entry, field string) error

ValidateAncestor checks ownership and mutation grants on a path ancestor. Shared reads, traversal, and subdirectory creation remain valid. Child ownership checks and protected private creation remain the caller's responsibility.

func ValidateConfiguration

func ValidateConfiguration(account string, descriptor Descriptor, field string) error

ValidateConfiguration permits shared reads but restricts owners and mutation grants. A successful native file read must separately establish service read access.

Types

type Assessment

type Assessment struct {
	DACLState  string
	EntryCount int
	Status     string
	Reason     string
}

Assessment reports descriptor compatibility with the private DACL policy. Compatibility does not establish effective access, ancestor safety, or a stable snapshot.

func Assess

func Assess(account string, descriptor Descriptor) Assessment

Assess classifies an observed descriptor without resolving principal names or reading files.

type Descriptor

type Descriptor struct {
	Owner   string
	Present bool
	Null    bool
	Entries []Entry
}

Descriptor owns the native security metadata used by the private DACL policy.

type Entry

type Entry struct {
	Kind      uint8
	Flags     uint8
	Principal string
	Rights    uint32
}

Entry describes one basic native allow or deny entry.

Jump to

Keyboard shortcuts

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