as_user

package
v0.25.1 Latest Latest
Warning

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

Go to latest
Published: May 23, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MkdirAll

func MkdirAll(u *user.User, path string, perm uint32) error

MkdirAll reimplements os.MkdirAll but switching euid/egid first if necessary.

func OpenFile

func OpenFile(u *user.User, name string, flags int, perm uint32) (*os.File, error)

OpenFile reimplements os.OpenFile but switching euid/egid first if necessary.

func Rename

func Rename(u *user.User, oldpath, newpath string) error

Rename reimplements os.Rename but switching euid/egid first if necessary.

Types

This section is empty.

Jump to

Keyboard shortcuts

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