Documentation
¶
Overview ¶
Package windowsfile handles private creation and non-following Windows file opens.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( ErrInvalidName = errors.New("private file requires a local filename") ErrOwner = errors.New("cannot inspect private file owner") ErrPermissions = errors.New("cannot prepare private file permissions") )
Callers translate these setup failures into their own diagnostics.
Functions ¶
func CreatePrivate ¶
CreatePrivate creates one leaf in root, without replacing an existing file. The protected DACL grants full access to the current user, SYSTEM, and Administrators. Set it at creation: later changes cannot revoke access through existing handles.
func CreatePrivateDirectory ¶
CreatePrivateDirectory creates path with a protected, inheritable private DACL. It preserves parent traversal without requiring permission to list the parent.
func OpenNoFollow ¶ added in v1.39.1
OpenNoFollow opens an existing writable leaf without following reparse points. Parent traversal retains normal Windows semantics and requires no directory listing permission. No create, truncate, or permission-changing flags are used.
Types ¶
This section is empty.