mountopts

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 License: Apache-2.0 Imports: 5 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FixUp

func FixUp(mounts []mount.Mount) ([]mount.Mount, error)

FixUp is for https://github.com/moby/buildkit/issues/3098

func FixUpOCI

func FixUpOCI(mounts []specs.Mount) ([]specs.Mount, error)

func UnprivilegedMountFlags

func UnprivilegedMountFlags(path string) ([]string, error)

UnprivilegedMountFlags gets the set of mount flags that are set on the mount that contains the given path and are locked by CL_UNPRIVILEGED. This is necessary to ensure that bind-mounting "with options" will not fail with user namespaces, due to kernel restrictions that require user namespace mounts to preserve CL_UNPRIVILEGED locked flags.

From https://github.com/moby/moby/blob/v23.0.1/daemon/oci_linux.go#L430-L460

Types

This section is empty.

Jump to

Keyboard shortcuts

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