Skip to content

Commit bc14672

Browse files
authored
Merge pull request #1840 from avagin/empty-ns-network
cr: don't dump network devices and their configuration
2 parents 21ac086 + 8187fb7 commit bc14672

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

checkpoint.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,8 @@ var namespaceMapping = map[specs.LinuxNamespaceType]int{
125125
}
126126

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

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

0 commit comments

Comments
 (0)