diff --git a/src/runtime/virtcontainers/pkg/nsenter/nsenter.go b/src/runtime/virtcontainers/pkg/nsenter/nsenter.go deleted file mode 100644 index 70189fc369..0000000000 --- a/src/runtime/virtcontainers/pkg/nsenter/nsenter.go +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) 2018 Intel Corporation -// Copyright 2015-2017 CNI authors -// -// SPDX-License-Identifier: Apache-2.0 -// - -package nsenter - -// NSType defines a namespace type. -type NSType string - -// List of namespace types. -// Notice that neither "mnt" nor "user" are listed into this list. -// Because Golang is multithreaded, we get some errors when trying -// to switch to those namespaces, getting "invalid argument". -// The solution is to reexec the current code so that it will call -// into a C constructor, making sure the namespace can be entered -// without multithreading issues. -const ( - NSTypeCGroup NSType = "cgroup" - NSTypeIPC NSType = "ipc" - NSTypeNet NSType = "net" - NSTypePID NSType = "pid" - NSTypeUTS NSType = "uts" -) - -type Namespace struct { - Path string - Type NSType - PID int -}