Affected by GO-2026-4883
and 4 other vulnerabilities
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
GO-2026-5617 : Docker: Race condition in docker cp allows bind mount redirection to host path in github.com/docker/docker
GO-2026-5668 : Docker: Race condition in docker cp allows creation of arbitrary empty files on the host via symlink swap in github.com/docker/docker
GO-2026-5746 : Docker: `PUT /containers/{id}/archive` executes container binary on the host in github.com/docker/docker
Discover Packages
github.com/docker/docker
internal
rootless
mountopts
package
Version:
v28.2.0-rc.2+incompatible
Opens a new window with list of versions in this module.
Published: May 22, 2025
License: Apache-2.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
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.
TODO: Move to github.com/moby/sys/mount, and update BuildKit copy of this code as well (https://github.com/moby/buildkit/blob/v0.13.0/util/rootless/mountopts/mountopts_linux.go#L11-L18 )
Source Files
¶
Click to show internal directories.
Click to hide internal directories.