osutil

package
v0.0.0-...-e8682ef Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2024 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileGIDEqual

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

func FilePermissionsMatch

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

func FileUIDEqual

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

func FileUidMatch

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

func IsWriteGroup

func IsWriteGroup(mode os.FileMode) bool

func IsWriteOther

func IsWriteOther(mode os.FileMode) bool

func OwnerPermissionsMatch

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

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