Repository navigation
Qualify a resolved container before it reaches the daemon - #329
Merged
Merged
Conversation
DescribeRuntime inspects the config and host config after overrides and refuses a combination that cannot boot: no writable /data, a read-only root that blocks the image's nsswitch rewrite, bootstrap capabilities removed by CapDrop ALL, a runtime uid that cannot own the world, host networking or a host device. Warnings name the weaker setting without stopping creation. Replaces the opaque internal error on the start and recreate paths with a failed-precondition that carries the reason. Refs OSS-238
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
DescribeRuntime inspects the resolved config and host config after defaults and operator overrides, so the qualification sees what the daemon will actually run.
Fatal (refuses creation, before any daemon mutation):
Warnings (logged with a named code and remedy, never block): no-new-privileges replaced by an override, privileged mode, writable rootfs, a non-numeric user, a replaced image entrypoint, a missing/small/executable /tmp tmpfs.
StartServerand the recreate path now return failed-precondition with the reason instead of a generic internal error; every other create failure still hides daemon internals.Refs OSS-238