MCPcopy Create free account

hub / github.com/opencontainers/runc / functions

Functions959 in github.com/opencontainers/runc

↓ 231 callersMethodClose
()
libcontainer/sync_unix.go:31
↓ 182 callersFunctionok
ok fails the test if an err is not nil.
libcontainer/integration/utils_test.go:79
↓ 99 callersMethodRun
Run executes the hook with the provided state.
libcontainer/configs/config.go:539
↓ 81 callersMethodContains
(t NamespaceType)
libcontainer/configs/namespaces_linux.go:124
↓ 67 callersFunctionmkPtr
TODO: replace with new(v) once Go < 1.26 is not supported.
libcontainer/criu_linux.go:113
↓ 59 callersFunctionnewTemplateConfig
newTemplateConfig returns a base template for running a container. It uses a network strategy of just setting a loopback interface and the default se
libcontainer/integration/template_test.go:36
↓ 55 callersMethodError
()
libcontainer/seccomp/seccomp_linux.go:138
↓ 53 callersMethodString
()
libcontainer/sync.go:66
↓ 52 callersMethodClose
Close closes all open fds for the tty and/or restores the original stdin state to what it was prior to the container execution
tty.go:170
↓ 51 callersMethodString
()
libcontainer/integration/utils_test.go:67
↓ 47 callersFunctionValidate
(config *configs.Config)
libcontainer/configs/validate/validator.go:21
↓ 44 callersFunctionwaitProcess
(p *libcontainer.Process, t testing.TB)
libcontainer/integration/utils_test.go:86
↓ 43 callersMethodWait
Wait waits for the process to exit. Wait releases any resources associated with the Process
libcontainer/process.go:130
↓ 37 callersFunctiondestroyContainer
(container *libcontainer.Container)
libcontainer/integration/utils_test.go:227
↓ 37 callersFunctionnewContainer
(t testing.TB, config *configs.Config)
libcontainer/integration/utils_test.go:165
↓ 22 callersMethodRemove
(t NamespaceType)
libcontainer/configs/namespaces_linux.go:97
↓ 22 callersMethodpid
pid returns the pid for the running process.
libcontainer/process_linux.go:41
↓ 18 callersFunctioncheckArgs
(context *cli.Context, expected, checkType int)
utils.go:23
↓ 17 callersFunctionLexicallyCleanPath
LexicallyCleanPath makes a path safe for use with filepath.Join. This is done by not only cleaning the path, but also (if the path is relative) adding
internal/pathrs/path.go:47
↓ 17 callersFunctionrunContainerOk
runContainerOk is a wrapper for runContainer, simplifying its use for cases when the run is expected to succeed and return exit code of 0.
libcontainer/integration/utils_test.go:213
↓ 16 callersFunctionmount
mount is a simple unix.Mount wrapper, returning an error with more context in case it failed.
libcontainer/mount_linux.go:142
↓ 14 callersMethodSignal
Signal sends a signal to the Process.
libcontainer/process.go:148
↓ 13 callersMethodAdd
(t NamespaceType, path string)
libcontainer/configs/namespaces_linux.go:106
↓ 13 callersFunctionNewCommandHook
NewCommandHook will execute the provided command when the hook is run.
libcontainer/configs/config.go:566
↓ 13 callersMethodWrite
(p []byte)
main.go:186
↓ 13 callersFunctionmountViaFds
mountViaFds is a unix.Mount wrapper which uses srcFile instead of source, and dstFd instead of target, unless those are empty. If srcFile is non-nil
libcontainer/mount_linux.go:158
↓ 12 callersMethodError
()
libcontainer/sync.go:86
↓ 12 callersMethodState
State returns the current container's state information.
libcontainer/container_linux.go:100
↓ 12 callersMethodStatus
Status returns the current status of the container.
libcontainer/container_linux.go:93
↓ 12 callersFunctionWithProcfdFile
WithProcfdFile is a very minimal wrapper around [ProcThreadSelfFd]. The caller is responsible for making sure that the provided file handle is actuall
libcontainer/utils/utils_unix.go:156
↓ 12 callersFunctionnewStdBuffers
()
libcontainer/integration/utils_test.go:55
↓ 11 callersMethodDestroy
Destroy destroys the container, if its in a valid state. Any event registrations are removed before the container is destroyed. No error is returned
libcontainer/container_linux.go:750
↓ 11 callersMethodFile
()
libcontainer/sync_unix.go:27
↓ 11 callersMethodStart
Start starts a process inside the container. Returns error if process fails to start. You can track process lifecycle with passed Process structure.
libcontainer/container_linux.go:205
↓ 11 callersMethodString
String forms of the state from proc(5)'s documentation for proc/[pid]/status' "State" field.
libcontainer/system/proc.go:30
↓ 11 callersFunctioncheckProcMount
checkProcMount checks to ensure that the mount destination is not over the top of /proc. dest is required to be an abs path and have any symlinks reso
libcontainer/rootfs_linux.go:839
↓ 11 callersFunctiongetContainer
getContainer returns the specified container instance by loading it from a state directory (root).
utils_linux.go:31
↓ 10 callersMethodID
ID returns the container's unique ID
libcontainer/container_linux.go:83
↓ 9 callersMethodSet
Set Intel RDT "resource control" filesystem as configured.
libcontainer/intelrdt/intelrdt.go:634
↓ 9 callersFunctiongetIntelRdtParamUint
Gets a single uint64 value from the specified file.
libcontainer/intelrdt/intelrdt.go:306
↓ 9 callersMethodpid
()
libcontainer/process.go:17
↓ 9 callersMethodtransition
(containerState)
libcontainer/state_linux.go:34
↓ 8 callersMethodApply
Apply applies Intel RDT configuration to the process with the specified pid.
libcontainer/intelrdt/intelrdt.go:445
↓ 8 callersFunctionCreateLibcontainerConfig
CreateLibcontainerConfig creates a new libcontainer configuration from a given specification and a cgroup name
libcontainer/specconv/spec_linux.go:384
↓ 8 callersFunctionNsName
NsName converts the namespace type to its filename
libcontainer/configs/namespaces_linux.go:27
↓ 8 callersMethodPathOf
(t NamespaceType)
libcontainer/configs/namespaces_linux.go:128
↓ 8 callersMethodcheckCriuVersion
checkCriuVersion checks CRIU version greater than or equal to minVersion.
libcontainer/criu_linux.go:93
↓ 8 callersFunctionconvertBlkioEntry
(c []cgroups.BlkioStatEntry)
events.go:199
↓ 8 callersFunctionretryEAGAIN
retryEAGAIN is a top-level retry loop for pathrs to try to returning spurious errors in most normal user cases when using openat2 (libpathrs itself do
internal/pathrs/retry.go:39
↓ 8 callersFunctionrunContainer
runContainer runs the container with the specific config and arguments buffers are returned containing the STDOUT and STDERR output for the run along
libcontainer/integration/utils_test.go:176
↓ 8 callersFunctionstringifyMountFlags
stringifyMountFlags converts mount(2) flags to a string that you can use in error messages.
libcontainer/mount_linux.go:56
↓ 7 callersFunctionCreateCgroupConfig
(opts *CreateOpts, defaultDevs []*devices.Device)
libcontainer/specconv/spec_linux.go:778
↓ 7 callersFunctionExample
Example returns an example spec file, with many options set so a user can see what a standard spec file looks like.
libcontainer/specconv/example.go:14
↓ 7 callersMethodFreeze
(_ cgroups.FreezerState)
libcontainer/container_linux_test.go:64
↓ 7 callersMethodPath
(subsys string)
libcontainer/container_linux_test.go:60
↓ 7 callersMethodPid
Pid returns the process ID
libcontainer/process.go:138
↓ 7 callersFunctionRecvFile
RecvFile waits for a file descriptor to be sent over the given AF_UNIX socket. The file name of the remote file descriptor will be recreated locally (
internal/cmsg/cmsg.go:44
↓ 7 callersFunctionReopen
Reopen is a wrapper around pathrs.Reopen.
internal/pathrs/procfs_pathrslite.go:104
↓ 7 callersFunctionRoot
Root returns the Intel RDT "resource control" filesystem mount point.
libcontainer/intelrdt/intelrdt.go:280
↓ 7 callersMethodSet
Set resources of container as configured. Can be used to change resources when the container is running.
libcontainer/container_linux.go:168
↓ 7 callersFunctionStat
Stat returns a Stat_t instance for the specified process.
libcontainer/system/proc.go:71
↓ 7 callersFunctioncreateCommandHook
(h specs.Hook)
libcontainer/specconv/spec_linux.go:1316
↓ 7 callersMethodcurrentOCIState
()
libcontainer/container_linux.go:967
↓ 7 callersFunctiongetIntelRdtParamString
Gets a string value from the specified file
libcontainer/intelrdt/intelrdt.go:321
↓ 7 callersMethodhasInit
hasInit tells whether the container init process exists.
libcontainer/container_linux.go:894
↓ 7 callersFunctionrootlessEUIDConfig
()
libcontainer/configs/validate/rootless_test.go:9
↓ 7 callersMethodstatus
()
libcontainer/state_linux.go:36
↓ 7 callersFunctionwriteSync
(pipe *syncSocket, sync syncType)
libcontainer/sync.go:112
↓ 6 callersMethodGetPath
GetPath returns Intel RDT path to save in a state file and to be able to restore the object later.
libcontainer/intelrdt/intelrdt.go:517
↓ 6 callersMethodIsPrivate
IsPrivate tells whether the namespace of type t is configured as private (i.e. it exists and is not shared).
libcontainer/configs/namespaces_syscall.go:37
↓ 6 callersFunctionNewFunctionHook
NewFunctionHook will call the provided function when the hook is run.
libcontainer/configs/config.go:543
↓ 6 callersFunctionProcThreadSelfOpen
ProcThreadSelfOpen is a wrapper around [procfs.Handle.OpenThreadSelf] and [pathrs.Reopen], to let you one-shot open a procfs file with the given flags
internal/pathrs/procfs_pathrslite.go:74
↓ 6 callersFunctionSetupSeccomp
(config *specs.LinuxSeccomp)
libcontainer/specconv/spec_linux.go:1195
↓ 6 callersMethodSyscall
()
libcontainer/configs/namespaces_syscall.go:7
↓ 6 callersFunctioninitMaps
()
libcontainer/specconv/spec_linux.go:49
↓ 6 callersFunctionlogToLogWriter
(t *testing.T, l *log, message string)
libcontainer/logs/logs_linux_test.go:70
↓ 6 callersMethodmountPropagate
Do the mount operation followed by additional mounts required to take care of propagation flags. This will always be scoped inside the container rootf
libcontainer/rootfs_linux.go:1472
↓ 6 callersFunctionneedUserNS
(t testing.TB)
libcontainer/integration/utils_test.go:231
↓ 6 callersFunctionnewLastCmdError
(err error)
libcontainer/intelrdt/intelrdt.go:705
↓ 6 callersFunctionretryOnEINTR
retryOnEINTR takes a function that returns an error and calls it until the error returned is not EINTR.
internal/linux/eintr.go:11
↓ 6 callersMethodrun
(config *specs.Process)
utils_linux.go:222
↓ 5 callersMethodConfig
Config returns the container's configuration
libcontainer/container_linux.go:88
↓ 5 callersMethodDestroy
Destroy destroys the Intel RDT container-specific container_id group.
libcontainer/intelrdt/intelrdt.go:490
↓ 5 callersMethodHostRootGID
HostRootGID gets the root gid for the process on host which could be non-zero when user namespaces are enabled.
libcontainer/configs/config_linux.go:83
↓ 5 callersMethodHostRootUID
HostRootUID gets the root uid for the process on host which could be non-zero when user namespaces are enabled.
libcontainer/configs/config_linux.go:53
↓ 5 callersMethodIsBind
()
libcontainer/configs/mount_linux.go:62
↓ 5 callersFunctionLexicallyStripRoot
LexicallyStripRoot returns the passed path, stripping the root path if it was (lexicially) inside it. Note that both passed paths will always be treat
internal/pathrs/path.go:74
↓ 5 callersFunctionLoad
Load takes a path to the state directory (root) and an id of an existing container, and returns a Container object reconstructed from the saved state.
libcontainer/factory_linux.go:108
↓ 5 callersFunctionSendRawFd
SendRawFd sends a specific file descriptor over the given AF_UNIX socket.
internal/cmsg/cmsg.go:131
↓ 5 callersMethodSerialize
()
libcontainer/message_linux.go:57
↓ 5 callersFunctionWriteJSON
WriteJSON writes the provided struct v to w using standard json marshaling without a trailing newline. This is used instead of json.Encoder because th
libcontainer/utils/utils.go:29
↓ 5 callersFunctioncapSlice
capSlice converts the slice of capability names in caps, to their numeric equivalent, and returns them as a slice. Unknown or unavailable capabilities
libcontainer/capabilities/capabilities.go:80
↓ 5 callersFunctioncheck
check checks that the file contains txt and does not contain notxt.
libcontainer/logs/logs_linux_test.go:129
↓ 5 callersMethodcurrentStatus
()
libcontainer/container_linux.go:863
↓ 5 callersFunctiondestroy
(c *Container)
libcontainer/state_linux.go:39
↓ 5 callersMethodinit
()
libcontainer/configs/validate/intelrdt.go:20
↓ 5 callersFunctionneedsSetupDev
needsSetupDev returns true if /dev needs to be set up.
libcontainer/rootfs_linux.go:91
↓ 5 callersFunctionnewPipe
(t *testing.T)
libcontainer/nsenter/nsenter_test.go:190
↓ 5 callersFunctionnewStateTransitionError
(from, to containerState)
libcontainer/state_linux.go:15
↓ 5 callersFunctiontestTransitions
(t *testing.T, initialState containerState, valid []containerState)
libcontainer/state_linux_test.go:26
next →1–100 of 959, ranked by callers