Repository navigation
Shim mount handler protocol - #14002
Conversation
There was a problem hiding this comment.
Pull request overview
This PR replaces the legacy shim mount-handling negotiation mechanism (runtime info annotation discovered via extra -info exec) with an additive capability + typed extension advertised in the shim BootstrapResult, and updates containerd’s mount-activation flow to consult the shim’s advertised capabilities before deciding what the mount manager should perform.
Changes:
- Extends the bootstrap protocol with
BootstrapResult.extensionsand addsCAPABILITY_MOUNT_MANAGEMENT, plus a newcontainerd.types.MountCapabilitiesextension type. - Reorders
TaskManager.Createto start the shim before rootfs activation and uses the shim’sBootstrapResult(or the deprecated annotation as fallback) to derive mount activation options. - Fixes bootstrap JSON parsing/round-tripping to preserve full
BootstrapResultdata (capabilities/extensions), with added unit/integration test coverage and updated docs.
Reviewed changes
Copilot reviewed 18 out of 28 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| vendor/modules.txt | Vendors github.com/containerd/containerd/api via local ./api replacement. |
| vendor/github.com/containerd/containerd/api/types/mount.proto | Vendors new MountCapabilities proto message. |
| vendor/github.com/containerd/containerd/api/types/mount.pb.go | Regenerated vendor proto bindings for MountCapabilities. |
| vendor/github.com/containerd/containerd/api/runtime/bootstrap/v1/helpers.go | Vendors helper methods for capabilities/extensions on bootstrap messages. |
| vendor/github.com/containerd/containerd/api/runtime/bootstrap/v1/bootstrap.proto | Vendors bootstrap protocol additions (extensions, mount capability). |
| vendor/github.com/containerd/containerd/api/runtime/bootstrap/v1/bootstrap.pb.go | Regenerated vendor bootstrap proto bindings. |
| vendor/github.com/containerd/containerd/api/LICENSE | Removes vendored LICENSE file for the vendored api module. |
| integration/failpoint/cmd/containerd-shim-runc-fp-v1/main_linux.go | Failpoint shim can advertise mount-management capability via env var for tests. |
| integration/failpoint/cmd/containerd-shim-runc-fp-v1/main_linux_test.go | Unit tests for parsing the failpoint shim mount capability spec. |
| go.sum | Removes sums for github.com/containerd/containerd/api due to local replace. |
| go.mod | Adds replace github.com/containerd/containerd/api => ./api. |
| docs/shim-capabilities.md | New doc describing capability registry and mount management capability. |
| docs/runtime-v2.md | Documents how capabilities + extensions are used in bootstrap protocol. |
| docs/mounts.md | Updates mount activation docs to prefer transforms and new shim capability path. |
| core/runtime/v2/task_manager.go | Starts shim before mount activation; adds capability-based mount claiming + deprecation warning. |
| core/runtime/v2/task_manager_mounts_test.go | Tests shim capability/extension vs annotation fallback behavior. |
| core/runtime/v2/shim.go | Preserves full BootstrapResult (capabilities/extensions) and fixes JSON parsing to avoid dropping fields. |
| core/runtime/v2/shim_test.go | Adds protobuf-safe equality + tests ensuring bootstrap round-trip preserves extensions. |
| core/runtime/v2/binary.go | Persists shim bootstrap result in shim instance for later capability checks. |
| core/mount/manager/manager.go | Adjusts transform-application logic to consult AllowTransforms and AllowMountTypes. |
| core/mount/manager.go | Adds AllowTransforms and WithAllowTransform; normalizes legacy format/* into transforms. |
| core/mount/manager_test.go | Unit tests for transform normalization and option behavior. |
| api/types/mount.proto | Adds MountCapabilities message in the in-repo api module. |
| api/types/mount.pb.go | Regenerated proto bindings for in-repo MountCapabilities. |
| api/runtime/bootstrap/v1/helpers.go | Adds BootstrapResult helpers (capabilities/extensions). |
| api/runtime/bootstrap/v1/bootstrap.proto | Adds extensions field and CAPABILITY_MOUNT_MANAGEMENT to the bootstrap protocol. |
| api/runtime/bootstrap/v1/bootstrap.pb.go | Regenerated bindings for bootstrap protocol additions. |
| api/next.txtpb | Updates API descriptor snapshot for the new messages/fields. |
Files not reviewed (2)
- api/runtime/bootstrap/v1/bootstrap.pb.go: Generated file
- api/types/mount.pb.go: Generated file
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| @@ -98,14 +111,34 @@ func WithLabels(labels map[string]string) ActivateOpt { | |||
| // of the mounts will support. Even if there is a custom handler | |||
| // registered for the mount type to the mount handler, these mounts | |||
| // should not performed unless required to support subsequent mounts. | |||
f0a3b2b to
c403ebd
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 19 out of 29 changed files in this pull request and generated no new comments.
Files not reviewed (2)
- api/runtime/bootstrap/v1/bootstrap.pb.go: Generated file
- api/types/mount.pb.go: Generated file
Suppressed comments (1)
go.mod:162
- The new
replace github.com/containerd/containerd/api => ./apicausesgo mod vendorto vendor the local./apitree. In this PR that also results invendor/github.com/containerd/containerd/api/no longer containing a LICENSE file (it used to), while many other vendored modules do. Please ensure license/attribution expectations for the vendoredgithub.com/containerd/containerd/apimodule are still met (e.g., by keeping a LICENSE/NOTICE file in theapi/module so it is preserved when vendored).
replace github.com/containerd/containerd/api => ./api
|
do we target this to v2.4? |
|
@fuweid yes, I'd like to get this in for 2.4. We could make this a breaking change (low impact) by removing the runtime info check. I was never a fan of that and think its only used by Nerdbox now, which can switch to this after its merged. |
| `containerd.io/runtime-allow-mounts` annotation in their runtime info, a comma | ||
| separated list using the `"<transformer>/*"` convention for transformers, | ||
| which containerd translates the same way `WithAllowMountType` does. It is | ||
| honoured only when a shim advertises no capabilities. |
| // shim instance, and does not require a separate invocation of the shim | ||
| // binary to discover. This annotation is still honoured for shims that do | ||
| // not advertise the capability. | ||
| allowedMounts = "containerd.io/runtime-allow-mounts" |
There was a problem hiding this comment.
Curious - should we drop this label in 2.4 ? I doubt there are external uses besides nerdbox.
There was a problem hiding this comment.
Yes, but was thinking of doing that in a quick follow up. I can try and add it here though
There was a problem hiding this comment.
Curious - should we drop this label in 2.4 ? I doubt there are external uses besides nerdbox.
kata is already using it for erofs snapshotter (https://github.com/kata-containers/kata-containers/pull/12763/files#diff-23c0f841997f951b150ed63026815477c1540196e579ce68afa68268e669edb0R32), including nvidia and msft use cases..
There was a problem hiding this comment.
Hey @dmcgowan we have enabled erofs snapshotter in kata for a while with the annotation of "containerd.io/runtime-allow-mounts",please see https://github.com/kata-containers/kata-containers/blob/7c6ba40c54ea29b459b4997cff948caaba4e658b/src/runtime-rs/crates/shim/src/bin/main.rs#L32 Is there a migration window for us to plan the transition. I believe it's definitly a breaking change for kata containers.
CC @fidencio
There was a problem hiding this comment.
It is breaking but only for 2.4. I would rather consider adding special cases for kata (check allowed-mounts for specific runtimes) rather than keep the complicated logic of having it defined in two different parts of the flow.
Generally the bootstrap protocol is a bit of a breaking change already that we are trying to complete. My preference is to work with a couple early adopters to make it smooth rather than keep the logic we want to get rid of though. We already had a special case in there for runc (that this will get rid of), so having a temporary special case for kata isn't so bad (if kata and no extensions, check info, removed before 2.6 lts).
There was a problem hiding this comment.
To clariify the logic cleanup, rather than always having an info call the is done before the first shim is started and cached for the life of the process, the information is part of the bootstrap negotiation. This allows the shim to return the result based on the running shim instance rather than a static set always defined for the shim, which could allow the shim to better decide mount types based on environmental conditionals such as rootless.
Not directly related to this change but this also allows us to more easily evolve the protocol so that the shim can own more of the runtime filesystem state. This is helpful for lazy loading which often makes the filesystem reliant on an external process for the life of a shim.
c403ebd to
5426b0f
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 19 out of 29 changed files in this pull request and generated 5 comments.
Files not reviewed (2)
- api/runtime/bootstrap/v1/bootstrap.pb.go: Generated file
- api/types/mount.pb.go: Generated file
Suppressed comments (2)
core/mount/manager/manager.go:159
- This removes the previously documented
WithAllowMountType("format/*")behavior, so existing API callers (and legacy annotation values) silently stop claiming transforms and containerd performs them on the host.WithAllowTransformcan be added without breaking the wildcard contract by retaining thep+"/*"check.
return !slices.Contains(config.AllowTransforms, p) && !slices.Contains(config.AllowMountTypes, t)
core/runtime/v2/task_manager.go:200
- For the normal shared-sandbox path with
opts.Addressset,ShimManager.Startconstructs a freshBootstrapResultcontaining only version/protocol/address (shim_manager.go:232-236). Therefore this value has no extensions, and containers joining that sandbox never inherit the shim's mount handling—the exact reload scenario this change intends to support. Recover the sandbox's persisted bootstrap result (or otherwise propagate its advertised fields) even when an explicit endpoint is supplied.
var bootstrap *bootapi.BootstrapResult
if sc, ok := shim.(shimCapabilities); ok {
bootstrap = sc.BootstrapResult()
}
Add a registry entry for the containerd.types.MountCapabilities extension, and update the mount and bootstrap protocol docs for extensions replacing the reserved-for-future-use capabilities field, and for the removal of the runtime-allow-mounts annotation and the "/*" transform convention. Signed-off-by: Derek McGowan <[email protected]>
Neither doc previously said how much of a claimed transform chain is actually honored; a reader could assume claiming any transform in a chain was sufficient on its own. State the suffix rule plainly, with the format/mkdir/overlay example the code itself now enforces, and call out that format in particular can only ever be claimed as part of a suffix that covers what follows it, never alone, since it resolves mount points internal to the mount manager. Signed-off-by: Derek McGowan <[email protected]>
17613af to
fbd9f37
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 24 out of 35 changed files in this pull request and generated no new comments.
Files not reviewed (2)
- api/runtime/bootstrap/v1/bootstrap.pb.go: Generated file
- api/types/mount.pb.go: Generated file
Suppressed comments (1)
go.mod:161
- A local
replaceis only honored by the main module. Consumers importinggithub.com/containerd/containerd/v2will ignore this directive and resolve the requiredcontainerd/api v1.12.0-beta.0, which does not containMountCapabilities,BootstrapResult.Extensions, or the new helper methods used by this PR, so downstream builds will fail. Please depend on a published API version/pseudo-version containing these changes and remove the local replacement.
replace github.com/containerd/containerd/api => ./api
containerd 2.4.0 Created-by: HarmonybrewBot Commit-by: HarmonybrewBot Merged-by: HarmonybrewBot Description: Created by `brew bump` --- Created with `brew bump-formula-pr`.<details> <summary>release notes</summary> <pre>Welcome to the v2.4.0 release of containerd! containerd 2.4 is a regular (non-LTS) release with a shorter support window, intended for users who want to adopt new features sooner. As the release following the 2.3 LTS, it is the point in the release cycle where previously deprecated features may be removed, so this release may include breaking changes; check the notes below and clear any deprecation warnings from your current version before upgrading. Users prioritizing stability and a longer support lifecycle should stay on the 2.3 LTS release. ### Highlights #### Container Runtime Interface (CRI) * Enable mount manager for image mounts in CRI ([#13542](containerd/containerd#13542)) * Export sandbox image and CNI directory configuration in CRI plugin info ([#13940](containerd/containerd#13940)) * Set default runtimeFeatures.UserNamespacesHostNetwork to true ([#13162](containerd/containerd#13162)) * Support OCI runtime feature introspection for non-runc runtimes ([#13504](containerd/containerd#13504)) #### Image Distribution * Apply hardening to strip sensitive authentication headers when fetching descriptor URLs ([#12889](containerd/containerd#12889)) * Support propagating HTTP 299 warning headers from registries to the resolver ([#12698](containerd/containerd#12698)) * Use klauspost/compress for gzip layer decompression ([#13560](containerd/containerd#13560)) #### Image Storage * Add client options to fetch all layer content during unpack even when snapshots exist ([#14126](containerd/containerd#14126)) * Include media type in content create events ([#13833](containerd/containerd#13833)) * Add forward References to the GC collection context ([#13634](containerd/containerd#13634)) #### Node Resource Interface (NRI) * Expose container image name, digest, and config digest to NRI plugins ([#13960](containerd/containerd#13960)) * Emit deprecation warnings for plugins using deprecated NRI interfaces ([#13916](containerd/containerd#13916)) #### Runtime * Mask /proc/interrupts and CPU thermal throttle sysfs paths in Linux containers by default ([#14090](containerd/containerd#14090)) * Add UpdateSandbox RPC to propagate sandbox controller updates to the shim ([#14105](containerd/containerd#14105)) * Avoid immediately restarting containers with restart=always policy after they are explicitly stopped ([#13993](containerd/containerd#13993)) * Pass tracing context from shim to runc and hooks ([#14036](containerd/containerd#14036)) * Fix user and group lookup failures in container rootfs containing symlinked /etc/passwd or /etc/group ([#13818](containerd/containerd#13818)) * Implement Windows named-pipe server and log streaming support in pkg/shim ([#13948](containerd/containerd#13948)) * Enable log scrubbing by default on Windows ([#13837](containerd/containerd#13837)) * Allow specifying parent checkpoint directory when checkpointing with runc ([#13699](containerd/containerd#13699)) #### Snapshotters * Add Prometheus metrics for EROFS snapshotter layer content cache ([#13941](containerd/containerd#13941)) * Support warm image cache for erofs snapshotter ([#13813](containerd/containerd#13813)) * Add max size label for snapshots ([#13520](containerd/containerd#13520)) #### Breaking * Remove deprecated CRI and tracing configuration options: * Remove `enable_cdi` in CRI runtime configuration (CDI is now always enabled) * Remove `bin_dir` in CRI CNI configuration (use `bin_dirs`) * Remove `endpoint`, `protocol`, and `insecure` in OTLP tracing processor configuration (use standard OTLP environment variables) * Remove `service_name` and `sampling_ratio` in internal tracing configuration (use standard OpenTelemetry environment variables) ([#14166](containerd/containerd#14166)) * Remove restore in CreateContainer ([#13871](containerd/containerd#13871)) #### Deprecations * Deprecate containerd.io/runtime-allow-mounts shim annotation in favor of MountCapabilities bootstrap extension ([#14002](containerd/containerd#14002)) * Remove deprecated shim.Command from pkg ([#13991](containerd/containerd#13991)) * Deprecate task API address and version fields in runc options and move to CreateTaskRequest ([#13360](containerd/containerd#13360)) Please try out the release binaries and report any issues at https://github.com/containerd/containerd/issues. ### Contributors * Maksym Pavlenko * Sebastiaan van Stijn * Samuel Karp * Derek McGowan * Wei Fu * Akihiro Suda * Mike Brown * Paweł Gronowski * Chris Henzie * Phil Estes * Brian Goff * Austin Vazquez * ningmingxiao * Jordan Liggitt * Akhil Mohan * Eshaan Mathur * Krisztian Litkey * Chris Ayoub * Kazuyoshi Kato * Kir Kolyshkin * Sergey Kanzhelev * Ahmet Alp Balkan * Arpit Jain * Cindy Li * Damien Grisonnet * Esteban Ginez * Gao Xiang * Harsh Rawat * Laura Lorenz * Maksim An * Oleh Konko * Philip Laine * Abhishek Bhunia * Alan Grosskurth * Albin Kerouanton * Alex Lyn * Aman Raj * Amir Alavi * Amit Barve * Andrew Halaney * AprilNEA * Arjun Yogidas * Ayato Tokubi * Aysha Afrah Ziya * Ben Cressey * Bing Hongtao * Chris Crone * Craig Gumbley * Daniel De Graaf * Davanum Srinivas * Dr. Jan-Philip Gehrcke * Harshal Patel * Henry Wang * Hsiu-Chi Tsai * JP Phillips * Jing Chen * Kohei Tokunaga * LEI WANG * Martín Fernández * Mikhail Dmitrichenko * Nahum Litvin * Nikolaus Schuetz * Pablo Garcia Caceres * Paco Xu * Robert Cronin * SaloniRathi * Shambhavi Srivastava * Tianon Gravi * XlabAI * Yuanliang Zhang * ayush-panta * crawfordxx * cshung * match man * s3onghyun * 归寂 * 徐晓伟 ### Changes <details><summary>658 commits</summary> <p> * [`647fafa847`](containerd/containerd@647fafa) Prepare release notes for v2.4.0 * Prepare release notes for api/v1.12.0 ([#14170](containerd/containerd#14170)) * [`5c4ea21de3`](containerd/containerd@5c4ea21) Prepare release notes for api/v1.12.0 * Deprecations and removals for 2.4 ([#14166](containerd/containerd#14166)) * [`531b3a37b9`](containerd/containerd@531b3a3) tracing: remove deprecated tracing config options * [`ca8579a334`](containerd/containerd@ca8579a) tracing: add tests for otlp exporter and env vars * [`ee024b7c99`](containerd/containerd@ee024b7) tracing: remove deprecated otlp configs * [`f7c654fb4f`](containerd/containerd@f7c654f) cri: remove deprecated cni bin_dir * [`4f7de25abb`](containerd/containerd@4f7de25) cri: remove enable_cdi config option * [`830b48d3fd`](containerd/containerd@830b48d) cri: delay registry config removal to 2.7 * Prepare release notes for v2.4.0-rc.0 ([#14115](containerd/containerd#14115)) * [`c02620e398`](containerd/containerd@c02620e) Prepare release notes for v2.4.0-rc.0 * [`02c7c97f43`](containerd/containerd@02c7c97) Update release doc for 2.4.0 release * [`484e5aba58`](containerd/containerd@484e5ab) vendor: github.com/containerd/containerd/api v1.12.0-rc.1 * [`67174d675c`](containerd/containerd@67174d6) mailmap: add Paweł Gronowski * Update erofs snapshotter to record blob source ([#14107](containerd/containerd#14107)) * [`697a7571a4`](containerd/containerd@697a757) erofs: give a dm-verity device a name unique to its mount * [`f75817eb3b`](containerd/containerd@f75817e) erofs: record where a layer blob is * [`d92088d822`](containerd/containerd@d92088d) erofs: refuse to apply into a read-only snapshot * [`8cc0b076a6`](containerd/containerd@8cc0b07) erofs: serve layer content cache on parented Prepare * build(deps): bump the golang-x group with 4 updates ([#14150](containerd/containerd#14150)) * [`75138b3fda`](containerd/containerd@75138b3) build(deps): bump the golang-x group with 4 updates * build(deps): bump github.com/klauspost/compress from 1.19.2 to 1.20.0 ([#14153](containerd/containerd#14153)) * [`353342cae6`](containerd/containerd@353342c) build(deps): bump github.com/klauspost/compress from 1.19.2 to 1.20.0 * pkg/oci: mask thermal interrupt info ([#14090](containerd/containerd#14090)) * [`c176f185b0`](containerd/containerd@c176f185b08e14bde055d81dc509 See merge request: Harmonybrew/homebrew-core!20372
A temporary activation panics containerd before 2.4 when the view ends in a transformed mount, which is every EROFS parent view, so `docker diff` takes containerd down on all 2.2 and 2.3 releases. It is fixed in containerd 2.4 by containerd/containerd@0b641f00994f ("mount: honor a claimed transform as a chain suffix", part of containerd/containerd#14002). Activate the parent view without WithTemporary. When the view is a single mount that Mount Manager handles (e.g. an image without layers), it returns no system mounts, and mounting nothing would make `docker diff` report every file as added. So bind-mount the last active mount point read-only: that is the view's root, and the same bind mount a temporary activation adds on a fixed containerd. Signed-off-by: Mykhaylo Sul <[email protected]>
A temporary activation panics containerd before 2.4 when the view ends in a transformed mount, which is every EROFS parent view, so `docker diff` takes containerd down on all 2.2 and 2.3 releases. It is fixed in containerd 2.4 by containerd/containerd@0b641f00994f ("mount: honor a claimed transform as a chain suffix", part of containerd/containerd#14002). Activate the parent view without WithTemporary. When the view is a single mount that Mount Manager handles (e.g. an image without layers), it returns no system mounts, and mounting nothing would make `docker diff` report every file as added. So bind-mount the last active mount point read-only: that is the view's root, and the same bind mount a temporary activation adds on a fixed containerd. Signed-off-by: Mykhaylo Sul <[email protected]>
Replaces the shim mount-handling negotiation mechanism — a comma-separated
string in
RuntimeInfo.Annotations["containerd.io/runtime-allow-mounts"],discovered via a separate
<shim> -infoexec — with a typed extensionattached to the shim's
BootstrapResult.Protocol
A shim attaches a
containerd.types.MountCapabilitiesextension naming themount types and transforms it performs itself. containerd ignores an
extension whose type it doesn't recognize, so this and future extensions are
backward compatible with no version handshake. The proto change is additive
(
buf breakingclean).Presence of the extension is authoritative and sufficient on its own — there
is no separate enum/flag gating it. With no other consumer, a flag would only
ever duplicate what the extension's presence already says, while still
permitting states with no single correct interpretation (flag set with no
extension, or the reverse).
Deprecated:
containerd.io/runtime-allow-mountsThe mechanism itself —
loadShimInfo,shimInfo, theshimInfoscache, andthe
runc.v2/runhcs.v1shortcut — is removed.getRuntimeInfoitself stays,since it's also used by
PluginInfoandvalidateRuntimeFeatures.It's not gone for shims that still rely on it, though: Kata's EROFS
snapshotter shim adopted this annotation before the extension existed
(kata-containers#12763),
so removing it outright would break existing deployments with no migration
window.
task_mounts_deprecated.goconfines a fallback to one file: when ashim's bootstrap result carries no
MountCapabilitiesextension, its runtimename is checked against the annotation, same as before, cached per runtime
name for the daemon's lifetime.
io.containerd.runc.v2andio.containerd.runhcs.v1are skipped outright, as they were before. Theextension stays authoritative whenever a shim provides it — this only runs in
its absence, and can be deleted outright once known early adopters migrate.
The
"<transform>/*"mount-type spelling used by the annotation is not ageneral
WithAllowMountTypefeature any more (e.g.WithAllowMountType("format/*")no longer means anything special); parsingit is confined to the deprecated fallback, which is the only remaining
producer of that spelling.
WithAllowTransformis how a shim expresses thatdirectly.
Timing change
TaskManager.Createnow starts the shim before activating the task'srootfs mounts, so its advertised extension is known before the daemon decides
what to activate. Starting a shim doesn't need the rootfs; only
task.Createdoes. A failure between shim start and task creation now tears the shim down
via a deferred cleanup reusing the existing
cleanupShimTaskhelper.Mount activation itself is extracted into a new
taskMountController(
task_mounts.go) rather than growing further inline inCreate, since itsstate transitions (owned vs. reused activation,
NotImplemented,AlreadyExists) are independent of shim startup and this keeps them testablewithout spawning a shim.
Also fixed
parseStartResponsedecoded a shim's JSON bootstrap response into adeprecated 3-field struct, silently dropping everything else. This mattered
once
BootstrapResultcould carry extensions: a container joining anexisting sandbox shim recovers that shim's result from
bootstrap.jsonrather than from a fresh start. Fixed by decoding into
BootstrapResultdirectly — no change to what's written or how it's stored,
encoding/jsonalready round-trips every field including unresolvable extensions.
TaskManager.CreateandDeleteboth called the mount manager directlywith no nil check, panicking whenever the mount manager plugin isn't
registered.
taskMountControllertreats a nil manager as nothing to do.BootstrapResult.FindExtension/BootstrapParams.FindExtensionnow use thegenerated nil-safe
GetExtensions()getter instead of an explicit nilreceiver check (fuweid).
activateMountsfunction(fuweid).
Not included
BootstrapParams.capabilities(daemon → shim) — no consumer yet.runc.v2's side — it has no real mounthandling of its own on this branch, so it advertises nothing.
MountCapabilitiesfor end-to-end testing. Noin-tree shim ever set the annotation this replaces either (
manager_linux.gohardcodes
Annotations: nil), so this matches existing precedent. Follow-up:teach the failpoint shim to read
MountCapabilitiesfrom a spec annotation,the same way its existing failpoints are configured
(
io.containerd.runtime.v2.shim.failpoint.*), and add an integration testasserting the daemon skips the claimed mounts.
Testing
bootstrap JSON round-trip (including an extension type the daemon can't
resolve),
taskMountController.Activate's state transitions with a fakemount.Manager, and the deprecated annotation fallback's caching,denylist, and parsing, with a fake
RuntimeInfoquerier (no real shimbinary needed).
make check-protos,buf breaking,go vet ./..., fullgo testrunincluding the
apimodule.