Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RunningInUserNS = runningInUserNS
RunningInUserNS detects whether we are currently running in a user namespace.
Functions ¶
func IsSameMapping ¶
IsSameMapping returns whether or not the two id mappings are the same. Note that if the order of the mappings is different, or a mapping has been split, the mappings will be considered different.
Types ¶
type Handles ¶
type Handles struct {
// contains filtered or unexported fields
}
func (*Handles) Get ¶
Get returns a handle to a /proc/$pid/ns/user nsfs file with the requested mapping. The processes spawned to produce userns nsfds are cached, so if equivalent user namespace mappings are requested, the same user namespace will be returned. The caller is responsible for closing the returned file descriptor.
Click to show internal directories.
Click to hide internal directories.