Refactor network configuration during restore and defer link creation in runsc#13659
Merged
Conversation
ab582e4 to
0bca259
Compare
… in runsc This change refactors the network configuration flow during sandbox restore and defers the creation of network links and routes in runsc to run after seccomp filters are installed. - Replaced ReplaceConfig with ResetConfig in inet.Stack. Introduced inet.NetworkArgs to configure the stack during restore, updating k.LoadFrom to use it. - Renamed CreateLinksAndRoutes URPC to SetNetworkArgs, which now configures host sockets before seccomp is installed, deferring link/route creation to run after seccomp. - Fixed S/R support by saving and restoring limit/burst state. - Minor seccomp filter adjustments and test updates. PiperOrigin-RevId: 945995430
0bca259 to
6d73c10
Compare
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.
Refactor network configuration during restore and defer link creation in runsc
This change refactors the network configuration flow during sandbox restore
and defers the creation of network links and routes in runsc to run after
seccomp filters are installed.
inet.NetworkArgs to configure the stack during restore, updating k.LoadFrom
to use it.
host sockets before seccomp is installed, deferring link/route creation to run
after seccomp.