fsacl

package
v1.5.18 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2026 License: Apache-2.0 Imports: 1 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package fsacl makes a file or directory private to the agent on hosts where a Unix mode is not enough. On Unix the callers' 0600 and 0700 modes already do this, so Protect does nothing there; on Windows it sets an explicit, protected DACL because Chmod only toggles the read-only attribute (ADR 093).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckOwner

func CheckOwner(string) error

CheckOwner does nothing outside Windows, where callers check uid ownership themselves.

func MkdirPrivate

func MkdirPrivate(dir string) error

MkdirPrivate creates dir as 0700 outside Windows.

func Protect

func Protect(string) error

Protect does nothing outside Windows: callers create the path with a 0600 or 0700 mode.

func SingleLink(*os.File) error

SingleLink does nothing outside Windows.

Types

This section is empty.

Jump to

Keyboard shortcuts

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