Merge pull request #1840 from avagin/empty-ns-network

cr: don't dump network devices and their configuration
This commit is contained in:
Qiang Huang 2018-07-18 14:22:36 +08:00 committed by GitHub
commit bc1467269f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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)]