priv

package
v0.7.4 Latest Latest
Warning

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

Go to latest
Published: May 4, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DockerClient

func DockerClient() (*client.Client, error)

DockerClient constructs a client that can continue to talk to a root owned docker socket * even after the process drops privileges

func EnsureOwner

func EnsureOwner(uid, gid int, paths ...string) error

EnsureOwner recursively chowns a dir if it isn't writable

func IsPrivileged

func IsPrivileged() bool

func RunAs

func RunAs(uid, gid int) error

RunAs sets the user ID and group ID of the calling process.

func SetEnvironmentForUser added in v0.7.4

func SetEnvironmentForUser(uid int) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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