Repository navigation
test(root-mount): the namespace case states the mntns-owner capability; docs: the GitHub proxy fallback - #734
Merged
Conversation
…y; docs: the GitHub proxy fallback and mirror_fallback normalize() proves a captured namespace's authority from the owner of its mount namespace (NS_GET_USERNS). A process in a user namespace nested under another process's cannot name that owner (EPERM), so the case failed there while it holds on GitHub's runners. The testkit probes it as the capability mntns-owner; the case requires it, and the Linux unit lane declares it, so it fails there when missing and skips elsewhere with the reason. The refusal on EPERM states the cause. The mirror region selects where xlings' own resources come from; a recipe's GitHub URL has third-party proxy candidates, latency-ordered when the sha256 is stated, governed by mirror_fallback. The indexes-and-mirrors chapter states both, in English and Chinese.
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.
Root mount
normalize()proves a captured namespace's authority from the owner of its mount namespace (NS_GET_USERNS). A process in a user namespace nested under another process's cannot name that owner: the kernel answers EPERM. SoRootMountfailed on such a host while it holds on GitHub's runners.mntns-owner.RootMount.ACapturedNamespaceRefusesABindingOutsideTheRootrequires it. The checks on invalid descriptors stay in a case of their own with no requirement.mntns-owner, so a missing capability fails there and skips elsewhere with the reason. Measured in a nested namespace: the case skips and the invalid-descriptor case passes.Mirrors
mirror(GLOBAL/CN) selects where xlings' own resources come from. A recipe's GitHub URL also has third-party proxy candidates; they are latency-ordered when the recipe states the sha256 and governed bymirror_fallback(auto/off/force). The behaviour is unchanged;docs/05-indexes-and-mirrors.mdnow states it in English and Chinese, so a proxy that comes first under GLOBAL reads as designed.