Skip to content

Commit

Permalink
cr: don't dump network devices and their configuration
Browse files Browse the repository at this point in the history
RunC doesn't manage network devices and their configuration,
so it is impossible to describe external dependencies to restore them
back.

This means that all users have to set --empty-ns network, so let's do
this by default.

Signed-off-by: Andrei Vagin <[email protected]>
  • Loading branch information
avagin committed Jul 11, 2018
1 parent 21ac086 commit 8187fb7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion checkpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,8 @@ var namespaceMapping = map[specs.LinuxNamespaceType]int{
}

func setEmptyNsMask(context *cli.Context, options *libcontainer.CriuOpts) error {
var nsmask int
/* Runc doesn't manage network devices and their configuration */
nsmask := unix.CLONE_NEWNET

for _, ns := range context.StringSlice("empty-ns") {
f, exists := namespaceMapping[specs.LinuxNamespaceType(ns)]
Expand Down

0 comments on commit 8187fb7

Please sign in to comment.