func setEmptyNsMask(context *cli.Context, options *libcontainer.CriuOpts) error { var nsmask int for _, ns := range context.StringSlice("empty-ns") { f, exists := namespaceMapping[specs.NamespaceType(ns)] if !exists { return fmt.Errorf("namespace %q is not supported", ns) } nsmask |= f } options.EmptyNs = uint32(nsmask) return nil }