mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-24 22:43:05 +00:00
virtcontainers: remove unused package nsenter
Package is not utilized. Remove. Signed-off-by: Eric Ernst <eric_ernst@apple.com>
This commit is contained in:
parent
4788cb8263
commit
8acb3a32b6
@ -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
|
||||
}
|
Loading…
Reference in New Issue
Block a user