MCPcopy
hub / github.com/opencontainers/runc / unlockNetwork

Function unlockNetwork

libcontainer/criu_linux.go:1098–1109  ·  view source on GitHub ↗
(config *configs.Config)

Source from the content-addressed store, hash-verified

1096}
1097
1098func unlockNetwork(config *configs.Config) error {
1099 for _, config := range config.Networks {
1100 strategy, err := getStrategy(config.Type)
1101 if err != nil {
1102 return err
1103 }
1104 if err = strategy.attach(config); err != nil {
1105 return err
1106 }
1107 }
1108 return nil
1109}
1110
1111func (c *Container) criuNotifications(resp *criurpc.CriuResp, process *Process, cmd *exec.Cmd, opts *CriuOpts, fds []string, oob []byte) error {
1112 notify := resp.GetNotify()

Callers 1

criuNotificationsMethod · 0.85

Calls 2

getStrategyFunction · 0.85
attachMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…