MCPcopy Create free account

hub / github.com/opencontainers/runc / functions

Functions959 in github.com/opencontainers/runc

↓ 2 callersFunctionrevisePidFile
(context *cli.Context)
utils.go:85
↓ 2 callersFunctionrootlessEUIDMount
rootlessEUIDMount verifies that all mounts have valid uid=/gid= options, i.e. their arguments has proper ID mappings.
libcontainer/configs/validate/rootless.go:50
↓ 2 callersFunctionscmpArchToAuditArch
(arch libseccomp.ScmpArch)
libcontainer/seccomp/patchbpf/enosys_linux.go:190
↓ 2 callersFunctionsendContainerProcessState
(listenerPath string, state *specs.ContainerProcessState, file *os.File)
libcontainer/process_linux.go:1118
↓ 2 callersFunctionsetFlag
(filter *libseccomp.ScmpFilter, flag specs.LinuxSeccompFlag)
libcontainer/seccomp/seccomp_linux.go:142
↓ 2 callersFunctionsetupConsole
setupConsole sets up the console from inside the container, and sends the master pty fd to the config.Pipe (using cmsg). This is done to ensure that c
libcontainer/init_linux.go:375
↓ 2 callersFunctionsetupIOPriority
(config *initConfig)
libcontainer/init_linux.go:641
↓ 2 callersFunctionsetupMemoryPolicy
(config *configs.Config)
libcontainer/init_linux.go:670
↓ 2 callersFunctionsetupPersonality
(config *configs.Config)
libcontainer/init_linux.go:678
↓ 2 callersFunctionsetupPidfd
setupPidfd opens a process file descriptor of init process, and sends the file descriptor back to the socket.
libcontainer/init_linux.go:724
↓ 2 callersFunctionsetupRlimits
(limits []configs.Rlimit, pid int)
libcontainer/init_linux.go:615
↓ 2 callersFunctionsetupScheduler
(config *initConfig)
libcontainer/init_linux.go:624
↓ 2 callersMethodsignal
(s os.Signal)
libcontainer/container_linux.go:428
↓ 2 callersFunctionsignalAllProcesses
signalAllProcesses freezes then iterates over all the processes inside the manager's cgroups sending the signal s to them.
libcontainer/init_linux.go:684
↓ 2 callersFunctionspawnProc
(req Mapping)
libcontainer/internal/userns/usernsfd_linux.go:77
↓ 2 callersFunctionsplitPath
(path string)
internal/pathrs/mkdirall.go:27
↓ 2 callersMethodsrcStat
()
libcontainer/rootfs_linux.go:60
↓ 2 callersMethodsrcStatfs
()
libcontainer/rootfs_linux.go:76
↓ 2 callersMethodstart
(process *Process)
libcontainer/container_linux.go:309
↓ 2 callersMethodstartWithCPUAffinity
Starts setns process with specified initial CPU affinity.
libcontainer/process_linux.go:215
↓ 2 callersFunctionsyncParentReady
syncParentReady sends to the given pipe a JSON payload which indicates that the init is ready to Exec the child process. It then waits for the parent
libcontainer/init_linux.go:422
↓ 2 callersFunctiontestCgroupResourcesUnified
(t *testing.T, systemd bool)
libcontainer/integration/exec_test.go:615
↓ 2 callersFunctiontestCgroupResourcesUnifiedErrorOnV1
(t *testing.T, systemd bool)
libcontainer/integration/exec_test.go:586
↓ 2 callersFunctiontestCheckpoint
(t *testing.T, userns bool)
libcontainer/integration/checkpoint_test.go:27
↓ 2 callersFunctiontestCpuShares
(t *testing.T, systemd bool)
libcontainer/integration/exec_test.go:508
↓ 2 callersFunctiontestEnosysStub
(t *testing.T, defaultAction configs.Action, arches []string)
libcontainer/seccomp/patchbpf/enosys_linux_test.go:117
↓ 2 callersFunctiontestExecInRlimit
(t *testing.T, userns bool)
libcontainer/integration/execin_test.go:79
↓ 2 callersFunctiontestExecPS
(t *testing.T, userns bool)
libcontainer/integration/exec_test.go:38
↓ 2 callersFunctiontestFdLeaks
(t *testing.T, systemd bool)
libcontainer/integration/exec_test.go:1710
↓ 2 callersFunctiontestMemoryNotification
(t *testing.T, evName string, notify notifyFunc, targ string)
libcontainer/notify_linux_test.go:16
↓ 2 callersFunctiontestPidnsInitKill
(t *testing.T, config *configs.Config)
libcontainer/integration/exec_test.go:1375
↓ 2 callersFunctiontestPids
(t *testing.T, systemd bool)
libcontainer/integration/exec_test.go:541
↓ 2 callersFunctiontestRlimit
(t *testing.T, userns bool)
libcontainer/integration/exec_test.go:128
↓ 2 callersFunctiontestUpdateDevices
(t *testing.T, systemd bool)
libcontainer/integration/update_test.go:13
↓ 2 callersFunctiontoHostID
(mappings []specs.LinuxIDMapping, id uint32)
tests/cmd/remap-rootfs/remap-rootfs.go:43
↓ 2 callersFunctiontruncateLogFile
(t *testing.T, file *os.File)
libcontainer/logs/logs_linux_test.go:119
↓ 2 callersFunctiontryResetCPUAffinity
tryResetCPUAffinity tries to reset the CPU affinity of the process identified by pid to include all possible CPUs (notwithstanding cgroup cpuset restr
libcontainer/process_linux.go:185
↓ 2 callersFunctionvalidateID
validateID checks if the supplied container ID is valid, returning the ErrInvalidID in case it is not. The format of valid ID was never formally defi
libcontainer/factory_linux.go:192
↓ 2 callersFunctionverifyDevNull
(f *os.File)
libcontainer/rootfs_linux.go:1315
↓ 1 callersMethodApplyBoundingSet
ApplyBoundingSet sets the capability bounding set to those specified in the whitelist.
libcontainer/capabilities/capabilities.go:100
↓ 1 callersMethodApplyCaps
ApplyCaps sets all the capabilities for the current process in the config.
libcontainer/capabilities/capabilities.go:110
↓ 1 callersFunctionClearKeepCaps
()
libcontainer/system/linux.go:58
↓ 1 callersFunctionClearRlimitNofileCache
ClearRlimitNofileCache clears go runtime's nofile rlimit cache. The argument is process RLIMIT_NOFILE values. Relies on go.dev/cl/588076.
libcontainer/system/rlimit_linux.go:9
↓ 1 callersFunctionCloneBinary
CloneBinary creates a "sealed" clone of a given binary, which can be used to thwart attempts by the container process to gain access to host binaries
libcontainer/exeseal/cloned_binary_linux.go:181
↓ 1 callersMethodCloneFlags
CloneFlags parses the container's Namespaces options to set the correct flags on clone, unshare. This function returns flags only for new namespaces.
libcontainer/configs/namespaces_syscall.go:24
↓ 1 callersFunctionCloneSelfExe
CloneSelfExe makes a clone of the current process's binary (through proc/self/exe). This binary can then be used for "runc init" in order to make sure
libcontainer/exeseal/cloned_binary_linux.go:219
↓ 1 callersMethodClosePostStart
ClosePostStart closes any fds that are provided to the container and dup2'd so that we no longer have copy in our process.
tty.go:162
↓ 1 callersFunctionConvertStringToArch
ConvertStringToArch converts a string into a Seccomp comparison arch.
libcontainer/seccomp/config.go:100
↓ 1 callersFunctionConvertStringToOperator
ConvertStringToOperator converts a string into a Seccomp comparison operator. Comparison operators use the names they are assigned by Libseccomp's hea
libcontainer/seccomp/config.go:81
↓ 1 callersFunctionCopy
Copy is like io.Copy except it uses sendfile(2) if the source and sink are both (*os.File) as an optimisation to make copies faster.
libcontainer/system/linux.go:117
↓ 1 callersFunctionCreateInRoot
CreateInRoot creates a new file inside a root (as well as any missing parent directories) and returns a handle to said file. This effectively has open
internal/pathrs/root_pathrslite.go:52
↓ 1 callersFunctionExecutableMemfd
(comment string, flags int)
libcontainer/system/linux.go:89
↓ 1 callersFunctionFchmodFile
FchmodFile is a wrapper around fchmodat2(AT_EMPTY_PATH) with fallbacks for older kernels. This is distinct from [File.Chmod] and [unix.Fchmod] in that
internal/sys/opath_linux.go:17
↓ 1 callersFunctionFchownFile
FchownFile is a wrapper around fchownat(AT_EMPTY_PATH). This is distinct from [File.Chown] and [unix.Fchown] in that it works on O_PATH file descripto
internal/sys/opath_linux.go:49
↓ 1 callersFunctionFiles
Files returns a slice containing a os.File object for each file descriptor passed to this process via systemd fd-passing protocol. The order of the f
internal/third_party/systemd/activation/files_unix.go:40
↓ 1 callersFunctionFlagSupported
FlagSupported checks if the flag is known to runc and supported by currently used libseccomp and kernel (i.e. it can be set).
libcontainer/seccomp/seccomp_linux.go:178
↓ 1 callersFunctionGetPtyPeer
GetPtyPeer is a wrapper for ioctl(TIOCGPTPEER).
internal/linux/linux.go:121
↓ 1 callersMethodInitializeIO
InitializeIO creates pipes for use with the process's stdio and returns the opposite side for each. Do not use this if you want to have a pseudotermin
libcontainer/process_linux.go:1170
↓ 1 callersFunctionIsCloned
IsCloned returns whether the given file can be guaranteed to be a safe exe.
libcontainer/exeseal/cloned_binary_linux.go:203
↓ 1 callersFunctionIsEnabled
IsEnabled checks if Intel RDT is enabled.
libcontainer/intelrdt/intelrdt.go:427
↓ 1 callersFunctionIsSelfExeCloned
IsSelfExeCloned returns whether /proc/self/exe is a cloned binary that can be guaranteed to be safe. This means that it must be a sealed memfd. Other
libcontainer/exeseal/cloned_binary_linux.go:255
↓ 1 callersFunctionKnownActions
KnownActions returns the list of the known actions. Used by `runc features`.
libcontainer/seccomp/config.go:46
↓ 1 callersFunctionKnownArchs
KnownArchs returns the list of the known archs. Used by `runc features`.
libcontainer/seccomp/config.go:73
↓ 1 callersFunctionKnownCapabilities
KnownCapabilities returns the list of the known capabilities. Used by `runc features`.
libcontainer/capabilities/capabilities.go:38
↓ 1 callersFunctionKnownFlags
KnownFlags returns the list of the known filter flags. Used by `runc features`.
libcontainer/seccomp/config.go:117
↓ 1 callersFunctionKnownHookNames
KnownHookNames returns the known hook names. Used by `runc features`.
libcontainer/configs/config.go:445
↓ 1 callersFunctionKnownMemoryPolicyFlags
KnownMemoryPolicyFlags returns the list of the known memory policy mode flags. Used by `runc features`.
libcontainer/specconv/spec_linux.go:215
↓ 1 callersFunctionKnownMemoryPolicyModes
KnownMemoryPolicyModes returns the list of the known memory policy modes. Used by `runc features`.
libcontainer/specconv/spec_linux.go:208
↓ 1 callersFunctionKnownMountOptions
KnownMountOptions returns the list of the known mount options. Used by `runc features`.
libcontainer/specconv/spec_linux.go:187
↓ 1 callersFunctionKnownNamespaces
KnownNamespaces returns the list of the known namespaces. Used by `runc features`.
libcontainer/specconv/spec_linux.go:175
↓ 1 callersFunctionKnownOperators
KnownOperators returns the list of the known operations. Used by `runc features`.
libcontainer/seccomp/config.go:28
↓ 1 callersFunctionMemfd
Memfd creates a sealable executable memfd (supported since Linux 3.17).
libcontainer/exeseal/cloned_binary_linux.go:66
↓ 1 callersFunctionModKeyringPerm
ModKeyringPerm modifies permissions on a keyring by reading the current permissions, anding the bits with the given mask (clearing permissions) and se
libcontainer/keys/keyctl.go:26
↓ 1 callersMethodNotifyOOM
NotifyOOM returns a read-only channel signaling when the container receives an OOM notification.
libcontainer/container_linux.go:804
↓ 1 callersFunctionPatchAndLoad
PatchAndLoad takes a seccomp configuration and a libseccomp filter which has been pre-configured with the set of rules in the seccomp config. It then
libcontainer/seccomp/patchbpf/enosys_linux.go:729
↓ 1 callersFunctionProcPidOpen
ProcPidOpen is a wrapper around [procfs.Handle.OpenPid] and [pathrs.Reopen], to let you one-shot open a procfs file with the given flags.
internal/pathrs/procfs_pathrslite.go:59
↓ 1 callersFunctionProcSelfOpen
ProcSelfOpen is a wrapper around [procfs.Handle.OpenSelf] and [pathrs.Reopen], to let you one-shot open a procfs file with the given flags.
internal/pathrs/procfs_pathrslite.go:48
↓ 1 callersMethodReadPacket
()
libcontainer/sync_unix.go:45
↓ 1 callersFunctionReadlinkat
Readlinkat wraps [unix.Readlinkat].
internal/linux/linux.go:102
↓ 1 callersFunctionRecvfrom
Recvfrom wraps [unix.Recvfrom].
internal/linux/linux.go:58
↓ 1 callersMethodRestore
()
libcontainer/system/linux.go:17
↓ 1 callersFunctionSchedSetaffinity
SchedSetaffinity wraps sched_setaffinity syscall without unix.CPUSet size limitation.
internal/linux/linux.go:70
↓ 1 callersMethodSet
()
libcontainer/system/linux.go:31
↓ 1 callersMethodSetDefaultEnv
SetDefaultEnv sets the environment for those CommandHook entries that do not have one set.
libcontainer/configs/config.go:529
↓ 1 callersFunctionSetKeepCaps
()
libcontainer/system/linux.go:50
↓ 1 callersFunctionSetLinuxPersonality
SetLinuxPersonality sets the Linux execution personality. For more information see the personality syscall documentation. checkout getLinuxPersonality
libcontainer/system/linux.go:156
↓ 1 callersFunctionSetMempolicy
SetMempolicy wraps set_mempolicy.
internal/linux/linux.go:94
↓ 1 callersFunctionSetParentDeathSignal
(sig uintptr)
libcontainer/system/linux.go:35
↓ 1 callersFunctionSetSubreaper
SetSubreaper sets the value i as the subreaper setting for the calling process
libcontainer/system/linux.go:74
↓ 1 callersMethodSignal
Signal sends a specified signal to container's init. When s is SIGKILL and the container does not have its own PID namespace, all the container's pro
libcontainer/container_linux.go:396
↓ 1 callersMethodString
()
libcontainer/system/kernelversion/kernel_linux.go:41
↓ 1 callersFunctionSupportedFlags
SupportedFlags returns the list of the supported filter flags. This list may be a subset of one returned by KnownFlags due to some flags not supported
libcontainer/seccomp/config.go:125
↓ 1 callersFunctionToSchedAttr
ToSchedAttr is to convert *configs.Scheduler to *unix.SchedAttr.
libcontainer/configs/config.go:250
↓ 1 callersFunctionUnlinkInRoot
UnlinkInRoot deletes the inode specified at the given subpath. If you pass [unix.AT_REMOVEDIR] it will remove directories, otherwise it will remove no
internal/pathrs/root_pathrslite.go:74
↓ 1 callersMethodWritePacket
(b []byte)
libcontainer/sync_unix.go:41
↓ 1 callersFunctionWriteSysctls
WriteSysctls sets the given sysctls to the requested values.
internal/sys/sysctl_linux.go:25
↓ 1 callersMethodaddIntoCgroup
()
libcontainer/process_linux.go:356
↓ 1 callersMethodaddIntoCgroupV1
()
libcontainer/process_linux.go:259
↓ 1 callersMethodaddIntoCgroupV2
()
libcontainer/process_linux.go:322
↓ 1 callersMethodaddMaskPaths
(req *criurpc.CriuReq)
libcontainer/criu_linux.go:127
← previousnext →301–400 of 959, ranked by callers