Affected by GO-2024-3304
and 4 other vulnerabilities
GO-2024-3304 : Moby Race Condition vulnerability in github.com/moby/moby
GO-2024-3305 : Moby Race Condition vulnerability in github.com/moby/moby
GO-2024-3311 : NULL Pointer Dereference on moby image history in github.com/moby/moby
GO-2026-4883 : Moby has an Off-by-one error in its plugin privilege validation in github.com/docker/docker
GO-2026-4887 : Moby has AuthZ plugin bypass when provided oversized request bodies in github.com/docker/docker
Discover Packages
github.com/moby/moby
internal
mounttree
package
Version:
v25.0.15+incompatible
Opens a new window with list of versions in this module.
Published: Jan 31, 2026
License: Apache-2.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
SwitchRoot changes path to be the root of the mount tree and changes the
current working directory to the new root.
This function bind-mounts onto path; it is the caller's responsibility to set
the desired propagation mode of path's parent mount beforehand to prevent
unwanted propagation into different mount namespaces.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.