mountns

package
v0.0.0-...-683b059 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2022 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Overview

Package mountns contains helpers to enter and leave mount namespaces.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnterInitMountNS

func EnterInitMountNS(ctx context.Context)

EnterInitMountNS enters the init mount namespace. Please see also the thread-related comment for EnterUserSessionMountNS, which applies here, too.

func EnterUserSessionMountNS

func EnterUserSessionMountNS(ctx context.Context) (retErr error)

EnterUserSessionMountNS enters the user session mount namespace. Mount namespace is per platform thread, which can be different from go-routine. So in order to use this API safely, the current running context needs to be bound to the platform thread, and it needs to be kept until it is unset by EnterInitMountNs.

Types

This section is empty.

Jump to

Keyboard shortcuts

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