From 8acb3a32b611718aedceecd782cd431b564558fa Mon Sep 17 00:00:00 2001 From: Eric Ernst Date: Thu, 4 Nov 2021 10:46:24 -0700 Subject: [PATCH] virtcontainers: remove unused package nsenter Package is not utilized. Remove. Signed-off-by: Eric Ernst --- .../virtcontainers/pkg/nsenter/nsenter.go | 31 ------------------- 1 file changed, 31 deletions(-) delete mode 100644 src/runtime/virtcontainers/pkg/nsenter/nsenter.go diff --git a/src/runtime/virtcontainers/pkg/nsenter/nsenter.go b/src/runtime/virtcontainers/pkg/nsenter/nsenter.go deleted file mode 100644 index 70189fc36..000000000 --- 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 -}