moby/internal
Sebastiaan van Stijn 4be97233cc
daemon: move getUnprivilegedMountFlags to internal package
This code is currently only used in the daemon, but is also needed in other
places. We should consider moving this code to github.com/moby/sys, so that
BuildKit can also use the same implementation instead of maintaining a fork;
moving it to internal allows us to reuse this code inside the repository, but
does not allow external consumers to depend on it (which we don't want as
it's not a permanent location).

As our code only uses this in linux files, I did not add a stub for other
platforms (but we may decide to do that in the moby/sys repository).

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit 7b414f5703)
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
2024-03-19 10:46:49 +01:00
..
compatcontext internal: Add compatcontext.WithoutCancel 2023-09-27 11:46:30 +02:00
mod Set BuildKit version using buildinfo 2023-04-25 12:30:52 +02:00
mounttree Add reusable chroot and unshare utilities 2022-10-26 12:06:31 -04:00
multierror Add a temporary drop-in replacement for errors.Join 2023-08-16 16:18:41 +02:00
rootless/mountopts daemon: move getUnprivilegedMountFlags to internal package 2024-03-19 10:46:49 +01:00
sliceutil add more //go:build directives to prevent downgrading to go1.16 language 2024-01-25 14:57:05 +01:00
test/suite Wire up tests to support otel tracing 2023-09-07 18:38:22 +00:00
testutils integration/save: Add tests checking OCI archive output 2024-02-05 14:28:02 +01:00
tools remove some remaining pre-go1.17 build-tags 2023-08-24 17:51:07 +02:00
unshare remove some remaining pre-go1.17 build-tags 2023-08-24 17:51:07 +02:00