Repository navigation
config-linux: remove %d template requirement for netDevices - #1333
Merged
Merged
Conversation
Although the Linux kernel expands "%d" during the RTM_NEWLINK move and rename operation, it does not return the generated interface name in the netlink acknowledgment. Because runtimes must subsequently look up the moved interface in the target network namespace to preserve global permanent IP addresses and bring the interface up, looking up the interface by the literal "%d" template name fails. Neither runc, crun, nor youki implements "%d" template handling, and supporting it in userspace requires breaking the atomic move-and-rename operation into multiple steps with a temporary interface name. Remove the "%d" template requirement from the specification. Signed-off-by: Antonio Ojea <aojea@google.com>
aojea
requested review from
AkihiroSuda,
crosbymichael,
cyphar,
dqminh,
giuseppe,
hqhq,
kolyshkin,
mrunalp,
thaJeztah,
tianon and
utam0k
as code owners
November 17, 2026 07:59
rata
approved these changes
Nov 17, 2026
rata
left a comment
Member
There was a problem hiding this comment.
LGTM, thanks @aojea @kolyshkin !
AkihiroSuda
approved these changes
Nov 17, 2026
This was referenced Nov 17, 2026
runc fails creation when netDevices.name contains the supported %d template
opencontainers/runc#5548
Closed
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.
Although the Linux kernel expands
%dduring theRTM_NEWLINKmove and rename operation, it does not return the generated interface name in the netlink acknowledgment. Because runtimes must subsequently look up the moved interface in the target network namespace to preserve global permanent IP addresses and bring the interface up, looking up the interface by the literal%dtemplate name fails.Neither
runc,crun, noryoukiimplements%dtemplate handling, and supporting it in userspace requires breaking the atomic move-and-rename operation into multiple steps with a temporary interface name. Remove the%dtemplate requirement from the specification.Ref: #1271 (comment)
Ref: opencontainers/runc#5548