rootless

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2019 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BecomeRootInUserNS

func BecomeRootInUserNS() (bool, int, error)

BecomeRootInUserNS re-exec podman in a new userNS. It returns whether podman was re-executed into a new user namespace and the return code from the re-executed podman process. If podman was re-executed the caller needs to propagate the error code returned by the child process.

func GetRootlessUID added in v0.7.1

func GetRootlessUID() int

GetRootlessUID returns the UID of the user in the parent userNS

func IsRootless

func IsRootless() bool

IsRootless tells us if we are running in rootless mode

func JoinDirectUserAndMountNS added in v1.0.0

func JoinDirectUserAndMountNS(pid uint) (bool, int, error)

JoinDirectUserAndMountNS re-exec podman in a new userNS and join the user and mount namespace of the specified PID without looking up its parent. Useful to join directly the conmon process.

func JoinNS added in v0.8.5

func JoinNS(pid uint) (bool, int, error)

JoinNS re-exec podman in a new userNS and join the user namespace of the specified PID.

func JoinNSPath added in v0.9.3

func JoinNSPath(path string) (bool, int, error)

JoinNSPath re-exec podman in a new userNS and join the owner user namespace of the specified path.

func SetSkipStorageSetup added in v0.8.5

func SetSkipStorageSetup(v bool)

SetSkipStorageSetup tells the runtime to not setup containers/storage

func SkipStorageSetup added in v0.8.5

func SkipStorageSetup() bool

SkipStorageSetup tells if we should skip the containers/storage setup

Types

This section is empty.

Jump to

Keyboard shortcuts

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