Skip to content

Refactor network configuration during restore and defer link creation in runsc#13659

Merged
copybara-service[bot] merged 1 commit into
masterfrom
test/cl944712375
Jul 11, 2026
Merged

Refactor network configuration during restore and defer link creation in runsc#13659
copybara-service[bot] merged 1 commit into
masterfrom
test/cl944712375

Conversation

@copybara-service

Copy link
Copy Markdown

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.

  • 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.

@copybara-service copybara-service Bot added the exported Issue was exported automatically label Jul 9, 2026
@copybara-service copybara-service Bot force-pushed the test/cl944712375 branch 6 times, most recently from ab582e4 to 0bca259 Compare July 11, 2026 00:35
… 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
@copybara-service copybara-service Bot merged commit 6d73c10 into master Jul 11, 2026
@copybara-service copybara-service Bot deleted the test/cl944712375 branch July 11, 2026 01:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

exported Issue was exported automatically

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant