priv

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 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

Types

This section is empty.

Jump to

Keyboard shortcuts

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