MCPcopy
hub / github.com/google/gvisor / SupervisorContext

Method SupervisorContext

pkg/sentry/kernel/kernel.go:1948–1953  ·  view source on GitHub ↗

SupervisorContext returns a Context with maximum privileges in k. It should only be used by goroutines outside the control of the emulated kernel defined by e. Callers are responsible for ensuring that the returned Context is not used concurrently with changes to the Kernel.

()

Source from the content-addressed store, hash-verified

1946// Callers are responsible for ensuring that the returned Context is not used
1947// concurrently with changes to the Kernel.
1948func (k *Kernel) SupervisorContext() context.Context {
1949 return &supervisorContext{
1950 Kernel: k,
1951 Logger: log.Log(),
1952 }
1953}
1954
1955// SocketRecord represents a socket recorded in Kernel.sockets.
1956//

Callers 15

InitMethod · 0.95
StartMethod · 0.95
ReleaseMethod · 0.95
AddDevGoferMethod · 0.95
StartContainerMethod · 0.80
ReadControlFilesMethod · 0.80
WriteControlFilesMethod · 0.80
SaveWithOptsMethod · 0.80
SaveRestoreExecFunction · 0.80
TarRootfsUpperLayerMethod · 0.80
catFunction · 0.80
preSaveCudaFunction · 0.80

Calls 1

LogFunction · 0.92

Tested by 5

newTestSystemFunction · 0.64
setupFunction · 0.64
setupWithDataFunction · 0.64
TestCreateMountNamespaceFunction · 0.64
TestCreateMountPointFunction · 0.64