MCPcopy Create free account

hub / github.com/opencontainers/runc / functions

Functions959 in github.com/opencontainers/runc

↓ 1 callersFunctionmknodDevice
(destDir *os.File, destName string, node *devices.Device)
libcontainer/rootfs_linux.go:1013
↓ 1 callersFunctionmktemp
mktemp creates a classic unlinked file in the given directory.
libcontainer/exeseal/cloned_binary_linux.go:104
↓ 1 callersFunctionmockFilter
mockFilter returns a BPF VM that contains a mock filter with an -ENOSYS stub. If the filter returns retFallthrough, the stub filter has permitted the
libcontainer/seccomp/patchbpf/enosys_linux_test.go:54
↓ 1 callersFunctionmockSyscallPayload
mockSyscallPayload creates a fake seccomp_data struct with the given data.
libcontainer/seccomp/patchbpf/enosys_linux_test.go:25
↓ 1 callersFunctionmountCgroupV1
(m mountEntry, c *mountConfig)
libcontainer/rootfs_linux.go:326
↓ 1 callersFunctionmountCgroupV2
(m mountEntry, c *mountConfig)
libcontainer/rootfs_linux.go:399
↓ 1 callersFunctionmountConsole
mountConsole bind-mounts the provided pty on top of /dev/console so programs that operate on /dev/console operate on the correct container pty.
libcontainer/console_linux.go:140
↓ 1 callersFunctionmountFd
mountFd creates a "mount source fd" (either through open_tree(2) or just open(O_PATH)) based on the provided configuration. This function must be call
libcontainer/mount_linux.go:253
↓ 1 callersFunctionmountsStrict
(config *configs.Config)
libcontainer/configs/validate/validator.go:418
↓ 1 callersFunctionmsMoveRoot
(rootfs string)
libcontainer/rootfs_linux.go:1189
↓ 1 callersFunctionmustExtractFd
(t *testing.T, buf []byte)
notify_socket_test.go:90
↓ 1 callersMethodnewInitProcess
(p *Process, cmd *exec.Cmd, comm *processComm)
libcontainer/container_linux.go:625
↓ 1 callersFunctionnewManager
(config *cgroups.Cgroup)
tests/cmd/sd-helper/helper.go:63
↓ 1 callersMethodnewParentProcess
(p *Process)
libcontainer/container_linux.go:496
↓ 1 callersFunctionnewProcess
newProcess converts [specs.Process] to [libcontainer.Process].
utils_linux.go:49
↓ 1 callersFunctionnewProcessComm
()
libcontainer/process_linux.go:73
↓ 1 callersFunctionnewRestoredProcess
(cmd *exec.Cmd, fds []string)
libcontainer/restored_process.go:11
↓ 1 callersFunctionnewRootfs
newRootfs creates a new tmp directory and copies the busybox root filesystem to it.
libcontainer/integration/utils_test.go:99
↓ 1 callersMethodnewSetnsProcess
(p *Process, cmd *exec.Cmd, comm *processComm)
libcontainer/container_linux.go:654
↓ 1 callersFunctionnewSignalHandler
newSignalHandler returns a signal handler for processing SIGCHLD and SIGWINCH signals while still forwarding all other signals to the process. If noti
signals.go:21
↓ 1 callersFunctionnewStats
()
libcontainer/intelrdt/stats.go:58
↓ 1 callersFunctionnewSyncSockpair
newSyncSockpair returns a new SOCK_SEQPACKET unix socket pair to be used for runc-init synchronisation.
libcontainer/sync_unix.go:77
↓ 1 callersFunctionnotifHandler
notifHandler handles seccomp notifications and responses
tests/cmd/seccompagent/seccompagent.go:169
↓ 1 callersFunctionnotifyOnOOMV2
notifyOnOOMV2 returns channel on which you can expect event about OOM, if process died without OOM this channel will be closed.
libcontainer/notify_v2_linux.go:83
↓ 1 callersFunctionnotifySocketStart
(context *cli.Context, notifySocketHost, id string)
notify_socket.go:87
↓ 1 callersMethodorderNamespacePaths
orderNamespacePaths sorts namespace paths into a list of paths that we can setns in order.
libcontainer/container_linux.go:990
↓ 1 callersFunctionotmpfile
otmpfile creates an open(O_TMPFILE) file in the given directory (supported since Linux 3.11).
libcontainer/exeseal/cloned_binary_linux.go:86
↓ 1 callersFunctionparseBoolOrAuto
parseBoolOrAuto returns (nil, nil) if s is empty or "auto"
utils.go:124
↓ 1 callersFunctionparseIdmapData
(data []byte)
libcontainer/internal/userns/userns_maps_linux.go:23
↓ 1 callersFunctionparseMountOptions
parseMountOptions parses options and returns a configs.Mount structure with fields that depends on options set accordingly.
libcontainer/specconv/spec_linux.go:1136
↓ 1 callersFunctionparseProgram
(rdr io.Reader)
libcontainer/seccomp/patchbpf/enosys_linux.go:120
↓ 1 callersFunctionparseSignal
(rawSignal string)
kill.go:63
↓ 1 callersFunctionparseStateFds
parseStateFds returns the seccomp-fd and closes the rest of the fds in recvFds. In case of error, no fd is closed. StateFds is assumed to be formatted
tests/cmd/seccompagent/seccompagent.go:44
↓ 1 callersMethodpid
()
libcontainer/process_linux.go:130
↓ 1 callersFunctionpivotRoot
pivotRoot will call pivot_root such that rootfs becomes the new root filesystem, and everything else is cleaned up.
libcontainer/rootfs_linux.go:1138
↓ 1 callersMethodprepareCgroupFD
prepareCgroupFD sets up p.cmd to use clone3 with CLONE_INTO_CGROUP to join cgroup early, in p.cmd.Start. Returns an *os.File which must be closed by t
libcontainer/process_linux.go:371
↓ 1 callersMethodprepareCriuRestoreMounts
prepareCriuRestoreMounts tries to set up the rootfs of the container to be restored in the same way runc does it for initial container creation. Even
libcontainer/criu_linux.go:558
↓ 1 callersFunctionprepareImagePaths
(context *cli.Context)
checkpoint.go:83
↓ 1 callersFunctionprepareRoot
(config *configs.Config)
libcontainer/rootfs_linux.go:1098
↓ 1 callersFunctionprepareRootfs
prepareRootfs sets up the devices, mount points, and filesystems for use inside a new mount namespace. It doesn't set anything as ro. You must call fi
libcontainer/rootfs_linux.go:170
↓ 1 callersFunctionprepareTmp
tmp has to be mounted as private to allow MS_MOVE to work in all situations
libcontainer/rootfs_linux.go:307
↓ 1 callersFunctionprocessEntry
processEntry parses the error and either logs it via the standard logger or, if this is a fatal error, appends its text to fatals.
libcontainer/logs/logs.go:56
↓ 1 callersFunctionprocfsOpenRoot
(proc *procfs.Handle, subpath string, flags int)
internal/sys/sysctl_linux.go:14
↓ 1 callersFunctionreOpenDevNull
If stdin, stdout, and/or stderr are pointing to `/dev/null` in the parent's rootfs this method will make them point to `/dev/null` in this container's
libcontainer/rootfs_linux.go:932
↓ 1 callersFunctionreadArgString
(pid uint32, offset int64)
tests/cmd/seccompagent/seccompagent.go:130
↓ 1 callersFunctionreadFromExecFifo
(execFifo io.Reader)
libcontainer/container_linux.go:256
↓ 1 callersFunctionreadSysfsNetworkStats
Reads the specified statistics available under /sys/class/net/<EthInterface>/statistics
libcontainer/network_linux.go:81
↓ 1 callersFunctionreadonlyPath
readonlyPath will make a path read only.
libcontainer/rootfs_linux.go:1263
↓ 1 callersMethodreap
reap runs wait4 in a loop until we have finished processing any existing exits then returns all exits to the main event loop for further processing.
signals.go:130
↓ 1 callersFunctionrecvPidfd
(socketFile string)
tests/cmd/pidfd-kill/pidfd-kill.go:93
↓ 1 callersMethodrecvtty
(socket *os.File)
tty.go:102
↓ 1 callersFunctionregisterMemoryEventV2
(cgDir, evName, cgEvName string)
libcontainer/notify_v2_linux.go:14
↓ 1 callersFunctionremapRootfs
(root string, uidMap, gidMap []specs.LinuxIDMapping)
tests/cmd/remap-rootfs/remap-rootfs.go:60
↓ 1 callersFunctionremountReadonly
remountReadonly will remount an existing mount point and ensure that it is read-only.
libcontainer/rootfs_linux.go:1285
↓ 1 callersFunctionrequiresRootOrMappingTool
(c *configs.Config)
libcontainer/container_linux.go:1186
↓ 1 callersMethodrestoreNetwork
(req *criurpc.CriuReq, criuOpts *CriuOpts)
libcontainer/criu_linux.go:523
↓ 1 callersFunctionretryEAGAIN2
retryEAGAIN2 is like retryEAGAIN except it returns two values.
internal/pathrs/retry.go:56
↓ 1 callersFunctionreviseRootDir
reviseRootDir ensures that the --root option argument, if specified, is converted to an absolute and cleaned path, and that this path is sane.
utils.go:103
↓ 1 callersFunctionrootfsParentMountPrivate
rootfsParentMountPrivate ensures rootfs parent mount is private. This is needed for two reasons: - pivot_root() will fail if parent mount is shared; -
libcontainer/rootfs_linux.go:1074
↓ 1 callersFunctionrootlessEUIDMappings
(config *configs.Config)
libcontainer/configs/validate/rootless.go:32
↓ 1 callersMethodrun
(pid1 int)
notify_socket.go:107
↓ 1 callersFunctionrunMkdirForContainer
(pid uint32, fileName string, mode uint32, metadata string)
tests/cmd/seccompagent/seccompagent.go:149
↓ 1 callersFunctionrunPoststopHooks
(c *Container)
libcontainer/state_linux.go:69
↓ 1 callersFunctionruntime_IsPollDescriptor
go:linkname runtime_IsPollDescriptor internal/poll.IsPollDescriptor In order to make sure we do not close the internal epoll descriptors the Go runtim
libcontainer/utils/utils_unix.go:107
↓ 1 callersFunctionsafeAllocPty
safeAllocPty returns a new (ptmx, peer pty) allocation for use inside a container.
libcontainer/console_linux.go:98
↓ 1 callersMethodsaveState
(s *State)
libcontainer/container_linux.go:837
↓ 1 callersFunctionsdNotifyBarrier
sdNotifyBarrier performs synchronization with systemd by means of the sd_notify_barrier protocol.
notify_socket.go:178
↓ 1 callersFunctionsealedOverlayfs
sealedOverlayfs will create an internal overlayfs mount using fsopen() that uses the directory containing the binary as a lowerdir and a temporary tmp
libcontainer/exeseal/overlayfs_linux.go:53
↓ 1 callersMethodsetExternalDescriptors
(fds []string)
libcontainer/process_linux.go:56
↓ 1 callersMethodsetFinalCPUAffinity
()
libcontainer/process_linux.go:242
↓ 1 callersFunctionsetProcAttr
(attr, value string)
libcontainer/apparmor/apparmor_linux.go:30
↓ 1 callersFunctionsetReadonly
()
libcontainer/rootfs_linux.go:1114
↓ 1 callersFunctionsetRecAttr
(m mountEntry)
libcontainer/rootfs_linux.go:1519
↓ 1 callersFunctionsetupAndMountToRootfs
setupAndMountToRootfs sets up the mount for a single mount point and mounts it to the rootfs.
libcontainer/rootfs_linux.go:114
↓ 1 callersFunctionsetupDevSymlinks
(rootFd *os.File)
libcontainer/rootfs_linux.go:904
↓ 1 callersFunctionsetupIO
setupIO modifies the given process config according to the options.
utils_linux.go:99
↓ 1 callersFunctionsetupNetwork
setupNetwork sets up and initializes any network interface inside the container.
libcontainer/init_linux.go:558
↓ 1 callersMethodsetupNetworkDevices
setupNetworkDevices sets up and initializes any defined network interface inside the container.
libcontainer/process_linux.go:1082
↓ 1 callersFunctionsetupPidfdSocket
(process *libcontainer.Process, sockpath string)
utils_linux.go:420
↓ 1 callersFunctionsetupProcessPipes
setup pipes for the process so that advanced features like c/r are able to easily checkpoint and restore the process's IO without depending on a host
tty.go:34
↓ 1 callersFunctionsetupPtmx
(rootFd *os.File)
libcontainer/rootfs_linux.go:1129
↓ 1 callersFunctionsetupRoute
(config *configs.Config)
libcontainer/init_linux.go:571
↓ 1 callersMethodsetupSocketDirectory
()
notify_socket.go:83
↓ 1 callersFunctionsetupSpec
setupSpec performs initial setup based on the cli.Context for the container
utils.go:71
↓ 1 callersMethodsetupSpec
If systemd is supporting sd_notify protocol, this function will add support for sd_notify protocol from within the container.
notify_socket.go:51
↓ 1 callersFunctionsetupUser
setupUser changes the groups, gid, and uid for the user inside the container.
libcontainer/init_linux.go:468
↓ 1 callersFunctionsetupUserNamespace
(spec *specs.Spec, config *configs.Config)
libcontainer/specconv/spec_linux.go:1080
↓ 1 callersFunctionshouldHonorXDGRuntimeDir
()
rootless_linux.go:55
↓ 1 callersFunctionshouldUseRootlessCgroupManager
(context *cli.Context)
rootless_linux.go:13
↓ 1 callersFunctionspawnUserNamespaceCat
Do something equivalent to nsenter --user=<nsPath> cat <path>, but more efficiently. Returns the contents of the requested file from within the user n
libcontainer/internal/userns/userns_maps_linux.go:42
↓ 1 callersMethodsrcName
srcName is only meant for error messages, it returns a "friendly" name.
libcontainer/rootfs_linux.go:53
↓ 1 callersMethodstart
start starts the process execution.
libcontainer/process_linux.go:44
↓ 1 callersFunctionstartInitialization
Normally, this function does not return. If it returns, with or without an error, it means the initialization has failed. If the error is returned, it
libcontainer/init_linux.go:128
↓ 1 callersMethodstartTime
startTime returns the process start time.
libcontainer/process_linux.go:53
↓ 1 callersMethodstartWithCgroupFD
startWithCgroupFD starts a process via clone3 with CLONE_INTO_CGROUP, with a fallback if it fails (e.g. not available).
libcontainer/process_linux.go:432
↓ 1 callersFunctionstatfsToMountFlags
(st unix.Statfs_t)
libcontainer/rootfs_linux.go:505
↓ 1 callersFunctionstrToRlimit
(key string)
rlimit_linux.go:28
↓ 1 callersFunctionstringToCgroupDeviceRune
(s string)
libcontainer/specconv/spec_linux.go:997
↓ 1 callersFunctionstringToDeviceRune
(s string)
libcontainer/specconv/spec_linux.go:1010
↓ 1 callersFunctionsupportsIDMap
(src string)
tests/cmd/fs-idmap/fs-idmap.go:28
← previousnext →501–600 of 959, ranked by callers