MCPcopy Create free account

hub / github.com/opencontainers/runc / functions

Functions959 in github.com/opencontainers/runc

↓ 4 callersFunctionAnnotations
Annotations returns the bundle path and user defined annotations from the libcontainer state. We need to remove the bundle because that is a label ad
libcontainer/utils/utils.go:53
↓ 4 callersMethodClose
()
notify_socket.go:45
↓ 4 callersFunctionCreate
Create creates a new container with the given id inside a given state directory (root), and returns a Container object. The root is a state directory
libcontainer/factory_linux.go:35
↓ 4 callersMethodGetMonPath
GetMonPath returns path of the monitoring group of the container. Returns an empty string if the container does not have a individual dedicated monito
libcontainer/intelrdt/intelrdt.go:524
↓ 4 callersMethodHasHook
HasHook checks if config has any hooks with any given names configured.
libcontainer/configs/config.go:431
↓ 4 callersFunctionInitSeccomp
InitSeccomp does nothing because seccomp is not supported.
libcontainer/seccomp/seccomp_unsupported.go:15
↓ 4 callersFunctionIsCATEnabled
IsCATEnabled checks if Intel RDT/CAT is enabled.
libcontainer/intelrdt/intelrdt.go:433
↓ 4 callersFunctionIsLexicallyInRoot
IsLexicallyInRoot is shorthand for strings.HasPrefix(path+"/", root+"/"), but properly handling the case where path or root have a "/" suffix. NOTE:
internal/pathrs/path.go:34
↓ 4 callersFunctionIsMBAEnabled
IsMBAEnabled checks if Intel RDT/MBA is enabled.
libcontainer/intelrdt/intelrdt.go:439
↓ 4 callersFunctionMkdirAllInRoot
MkdirAllInRoot attempts to make path, _ := securejoin.SecureJoin(root.Name(), unsafePath) os.MkdirAll(path, mode) os.Open(path) safer against att
internal/pathrs/mkdirall_pathrslite.go:50
↓ 4 callersFunctionOpenInRoot
OpenInRoot opens the given path inside the root with the provided flags. It is effectively shorthand for [securejoin.OpenatInRoot] followed by [secure
internal/pathrs/root_pathrslite.go:35
↓ 4 callersMethodProcesses
Processes returns the PIDs inside this container. The PIDs are in the namespace of the calling process. Some of the returned PIDs may no longer refer
libcontainer/container_linux.go:131
↓ 4 callersFunctionToCPUSet
ToCPUSet parses a string in list format into a unix.CPUSet, e.g. "0-3,5,7-9".
libcontainer/configs/config.go:312
↓ 4 callersMethodUnmarshalJSON
(b []byte)
libcontainer/configs/config.go:469
↓ 4 callersFunctionVerifyInode
VerifyInode verifies that the underlying inode for the given file matches an expected inode type (possibly on a particular kind of filesystem). This i
internal/sys/verify_inode_unix.go:19
↓ 4 callersMethodaddCriuRestoreMount
(req *criurpc.CriuReq, m *configs.Mount)
libcontainer/criu_linux.go:511
↓ 4 callersFunctionconvertMemoryEntry
(c cgroups.MemoryData)
events.go:190
↓ 4 callersFunctionfeaturesInit
Check if Intel RDT sub-features are enabled in featuresInit()
libcontainer/intelrdt/intelrdt.go:213
↓ 4 callersFunctiongetStrategy
getStrategy returns the specific network strategy for the provided type.
libcontainer/network_linux.go:36
↓ 4 callersMethodid
id returns a unique identifier for this mapping, agnostic of the order of the uid and gid mappings (because the order doesn't matter to the kernel). T
libcontainer/internal/userns/usernsfd_linux.go:43
↓ 4 callersMethodindex
(t NamespaceType)
libcontainer/configs/namespaces_linux.go:115
↓ 4 callersFunctionmkPtr
TODO: replace with new(v) once Go < 1.26 is not supported.
update.go:21
↓ 4 callersFunctionmountToRootfs
(c *mountConfig, m mountEntry)
libcontainer/rootfs_linux.go:610
↓ 4 callersFunctionnewManager
newManager is the same as NewManager, except it does not check if the feature is actually available. Used by unit tests that mock intelrdt paths.
libcontainer/intelrdt/intelrdt.go:188
↓ 4 callersFunctionparseStat
(data string)
libcontainer/system/proc.go:87
↓ 4 callersFunctionretryOnEINTR2
retryOnEINTR2 is like retryOnEINTR, but it returns 2 values.
internal/linux/eintr.go:21
↓ 4 callersFunctionrunLogForwarding
(t *testing.T)
libcontainer/logs/logs_linux_test.go:84
↓ 4 callersFunctionsyncParentSeccomp
syncParentSeccomp sends the fd associated with the seccomp file descriptor to the parent, and wait for the parent to do pidfd_getfd() to grab a copy.
libcontainer/init_linux.go:445
↓ 4 callersFunctiontoConfigIDMap
(specMaps []specs.LinuxIDMapping)
libcontainer/specconv/spec_linux.go:626
↓ 4 callersFunctionunmountOp
(path string)
libcontainer/integration/exec_test.go:1116
↓ 4 callersFunctionupsertThrottleDevice
(devices []*cgroups.ThrottleDevice, td specs.LinuxThrottleDevice)
update.go:429
↓ 3 callersMethodCheckpoint
(criuOpts *CriuOpts)
libcontainer/criu_linux.go:297
↓ 3 callersMethodExists
()
libcontainer/container_linux_test.go:47
↓ 3 callersFunctionExitStatus
ExitStatus returns the correct exit status for a process based on if it was signaled or exited cleanly
libcontainer/utils/utils.go:18
↓ 3 callersMethodGetAllPids
()
libcontainer/container_linux_test.go:23
↓ 3 callersMethodHostUID
HostUID gets the translated uid for the process on host which could be different when user namespaces are enabled.
libcontainer/configs/config_linux.go:29
↓ 3 callersFunctionIsCMTEnabled
IsCMTEnabled checks if Intel RDT/CMT is enabled.
libcontainer/intelrdt/cmt.go:6
↓ 3 callersMethodIsIDMapped
()
libcontainer/configs/mount_linux.go:66
↓ 3 callersFunctionIsMBMEnabled
IsMBMEnabled checks if Intel RDT/MBM is enabled.
libcontainer/intelrdt/mbm.go:7
↓ 3 callersFunctionIsNamespaceSupported
IsNamespaceSupported returns whether a namespace is available or not
libcontainer/configs/namespaces_linux.go:51
↓ 3 callersMethodMarshalJSON
()
libcontainer/configs/config.go:491
↓ 3 callersFunctionMkdirAllParentInRoot
MkdirAllParentInRoot is like [MkdirAllInRoot] except that it only creates the parent directory of the target path, returning the trailing component so
internal/pathrs/mkdirall.go:42
↓ 3 callersFunctionNewIntelRdtTestUtil
Creates a new test util
libcontainer/intelrdt/util_test.go:25
↓ 3 callersFunctionNewSockPair
NewSockPair returns a new SOCK_STREAM unix socket pair.
libcontainer/utils/utils_unix.go:139
↓ 3 callersMethodOOMKillCount
()
libcontainer/container_linux_test.go:52
↓ 3 callersFunctionOpenat
Openat is a Go-friendly openat(2) wrapper.
libcontainer/utils/utils_unix.go:235
↓ 3 callersMethodPause
Pause pauses the container, if its state is RUNNING or CREATED, changing its state to PAUSED. If the state is already PAUSED, does nothing.
libcontainer/container_linux.go:761
↓ 3 callersFunctionProcThreadSelfFd
ProcThreadSelfFd is small wrapper around ProcThreadSelf to make it easier to create a /proc/thread-self handle for given file descriptor. It is basic
libcontainer/utils/utils_unix.go:230
↓ 3 callersMethodResume
Resume resumes the execution of any user processes in the container before setting the container state to RUNNING. This is only performed if the curre
libcontainer/container_linux.go:784
↓ 3 callersFunctionSearchLabels
SearchLabels searches through a list of key=value pairs for a given key, returning its value, and the binary flag telling whether the key exist.
libcontainer/utils/utils.go:40
↓ 3 callersFunctionSendFile
SendFile sends a file over the given AF_UNIX socket. file.Name() is also included so that if the other end uses RecvFile, the file will have the same
internal/cmsg/cmsg.go:120
↓ 3 callersMethodShutdown
(how int)
libcontainer/sync_unix.go:68
↓ 3 callersMethodStats
Stats returns statistics for the container.
libcontainer/container_linux.go:140
↓ 3 callersFunctionSymlinkInRoot
SymlinkInRoot creates a symlink inside a root with the given target (as well as creating any missing parent directories). If the subpath already exist
internal/pathrs/root_pathrslite.go:100
↓ 3 callersFunctionWriteIntelRdtTasks
WriteIntelRdtTasks writes the specified pid into the "tasks" file
libcontainer/intelrdt/intelrdt.go:412
↓ 3 callersMethodaddCriuDumpMount
(req *criurpc.CriuReq, m *configs.Mount)
libcontainer/criu_linux.go:115
↓ 3 callersFunctioncheckCMTStatCorrection
(got, expected CMTNumaNodeStats, t *testing.T)
libcontainer/intelrdt/cmt_test.go:38
↓ 3 callersFunctioncheckMBMStatCorrection
(got, expected MBMNumaNodeStats, t *testing.T)
libcontainer/intelrdt/mbm_test.go:41
↓ 3 callersFunctioncheckPropertyName
checkPropertyName checks if systemd property name is valid. A valid name should consist of latin letters only, and have least 3 of them.
libcontainer/specconv/spec_linux.go:688
↓ 3 callersMethodcopyIO
(w io.Writer, r io.ReadCloser)
tty.go:26
↓ 3 callersMethodcriuSwrk
(process *Process, req *criurpc.CriuReq, opts *CriuOpts, extraFiles []*os.File)
libcontainer/criu_linux.go:903
↓ 3 callersMethodcurrentState
()
libcontainer/container_linux.go:917
↓ 3 callersFunctiondevValidName
https://elixir.bootlin.com/linux/v6.12/source/net/core/dev.c#L1066
libcontainer/configs/validate/validator.go:75
↓ 3 callersFunctiondoWriteSync
(pipe *syncSocket, sync syncT)
libcontainer/sync.go:90
↓ 3 callersFunctionfatal
fatal prints the error's details if it is a libcontainer specific error type then exits the program with an exit status of 1.
utils.go:56
↓ 3 callersFunctionfinish
(t *testing.T, l *log)
libcontainer/logs/logs_linux_test.go:111
↓ 3 callersFunctiongetCgroupMounts
(m *configs.Mount)
libcontainer/rootfs_linux.go:793
↓ 3 callersFunctiongetKernelVersion
getKernelVersion gets the current kernel version.
libcontainer/system/kernelversion/kernel_linux.go:55
↓ 3 callersFunctionignoreTerminateErrors
ignoreTerminateErrors returns nil if the given err matches an error known to indicate that the terminate occurred successfully or err was nil, otherwi
libcontainer/container_linux.go:1164
↓ 3 callersFunctionisDevNull
(st *unix.Stat_t)
libcontainer/rootfs_linux.go:1310
↓ 3 callersFunctionmaybeLogCgroupWarning
(op string, err error)
utils_linux.go:447
↓ 3 callersFunctionmockResctrlL3_MON
(t *testing.T, NUMANodes []string, mocks map[string]uint64)
libcontainer/intelrdt/monitoring_test.go:40
↓ 3 callersFunctionnewSyncSocket
(f *os.File)
libcontainer/sync_unix.go:23
↓ 3 callersFunctionparseMonFeatures
(reader io.Reader)
libcontainer/intelrdt/monitoring.go:29
↓ 3 callersFunctionreadSync
(pipe *syncSocket, expected syncType)
libcontainer/sync.go:172
↓ 3 callersMethodrefreshState
refreshState needs to be called to verify that the current state on the container is what is true. Because consumers of libcontainer can use it out o
libcontainer/container_linux.go:874
↓ 3 callersMethodsignal
(sig os.Signal)
libcontainer/process.go:16
↓ 3 callersFunctionstartContainer
(context *cli.Context, action CtAct, criuOpts *libcontainer.CriuOpts)
utils_linux.go:367
↓ 3 callersMethodterminate
(p *libcontainer.Process)
utils_linux.go:323
↓ 3 callersMethodterminate
send a SIGKILL to the process and wait for the exit.
libcontainer/process_linux.go:47
↓ 3 callersFunctiontruePipeline
(n int)
libcontainer/integration/exec_test.go:537
↓ 3 callersFunctionunmount
unmount is a simple unix.Unmount wrapper.
libcontainer/mount_linux.go:212
↓ 3 callersMethodupdateState
(process parentProcess)
libcontainer/container_linux.go:826
↓ 3 callersFunctionvalidateProcessSpec
(spec *specs.Process)
utils_linux.go:340
↓ 3 callersFunctionwriteSyncArg
(pipe *syncSocket, sync syncType, arg any)
libcontainer/sync.go:116
↓ 2 callersMethodAddPid
(_ string, _ int)
libcontainer/container_linux_test.go:35
↓ 2 callersFunctionApplyProfile
ApplyProfile will apply the profile with the specified name to the process after the next exec. It is only supported on Linux and produces an [ErrAppa
libcontainer/apparmor/apparmor.go:16
↓ 2 callersFunctionCloseExecFrom
CloseExecFrom sets the O_CLOEXEC flag on all file descriptors greater or equal to minFd in the current process.
libcontainer/utils/utils_unix.go:84
↓ 2 callersFunctionConvertCPUAffinity
ConvertCPUAffinity converts [specs.CPUAffinity] to [CPUAffinity].
libcontainer/configs/config.go:370
↓ 2 callersFunctionConvertStringToAction
ConvertStringToAction converts a string into a Seccomp rule match action. Actions use the names they are assigned in Libseccomp's header. Attempting t
libcontainer/seccomp/config.go:92
↓ 2 callersFunctionDup3
Dup3 wraps [unix.Dup3].
internal/linux/linux.go:11
↓ 2 callersFunctionExec
Exec wraps [unix.Exec].
internal/linux/linux.go:19
↓ 2 callersMethodExec
Exec signals the container to exec the users process at the end of the init.
libcontainer/container_linux.go:227
↓ 2 callersFunctionFlagSupported
FlagSupported tells if a provided seccomp flag is supported.
libcontainer/seccomp/seccomp_unsupported.go:23
↓ 2 callersFunctionForwardLogs
(logPipe io.ReadCloser)
libcontainer/logs/logs.go:17
↓ 2 callersMethodGet
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 equ
libcontainer/internal/userns/usernsfd_linux.go:123
↓ 2 callersMethodGetFreezerState
()
libcontainer/container_linux_test.go:72
↓ 2 callersFunctionGetParentDeathSignal
()
libcontainer/system/linux.go:42
↓ 2 callersMethodGetPath
(pid int)
libcontainer/configs/namespaces_linux.go:93
↓ 2 callersMethodGetPaths
()
libcontainer/container_linux_test.go:56
← previousnext →101–200 of 959, ranked by callers