osutil

package
v1.12.11 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2023 License: MPL-2.0 Imports: 6 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileGIDEqual added in v1.11.0

func FileGIDEqual(info fs.FileInfo, gid int) bool

func FilePermissionsMatch added in v1.11.0

func FilePermissionsMatch(info fs.FileInfo, path string, permissions int) error

func FileUIDEqual added in v1.11.0

func FileUIDEqual(info fs.FileInfo, uid int) bool

func FileUidMatch added in v1.11.0

func FileUidMatch(info fs.FileInfo, path string, uid int) (err error)

func IsWriteGroup added in v1.11.0

func IsWriteGroup(mode os.FileMode) bool

func IsWriteOther added in v1.11.0

func IsWriteOther(mode os.FileMode) bool

func OwnerPermissionsMatch added in v1.11.0

func OwnerPermissionsMatch(path string, uid int, permissions int) error

OwnerPermissionsMatch checks if vault user is the owner and permissions are secure for input path

func OwnerPermissionsMatchFile added in v1.12.4

func OwnerPermissionsMatchFile(file *os.File, uid int, permissions int) error

OwnerPermissionsMatchFile checks if vault user is the owner and permissions are secure for the input file

func Umask

func Umask(newmask int) int

Sets new umask and returns old umask

Types

This section is empty.

Jump to

Keyboard shortcuts

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