Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/opencontainers/runc
/ functions
Functions
959 in github.com/opencontainers/runc
⨍
Functions
959
◇
Types & classes
148
↓ 1 callers
Function
mknodDevice
(destDir *os.File, destName string, node *devices.Device)
libcontainer/rootfs_linux.go:1013
↓ 1 callers
Function
mktemp
mktemp creates a classic unlinked file in the given directory.
libcontainer/exeseal/cloned_binary_linux.go:104
↓ 1 callers
Function
mockFilter
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 callers
Function
mockSyscallPayload
mockSyscallPayload creates a fake seccomp_data struct with the given data.
libcontainer/seccomp/patchbpf/enosys_linux_test.go:25
↓ 1 callers
Function
mountCgroupV1
(m mountEntry, c *mountConfig)
libcontainer/rootfs_linux.go:326
↓ 1 callers
Function
mountCgroupV2
(m mountEntry, c *mountConfig)
libcontainer/rootfs_linux.go:399
↓ 1 callers
Function
mountConsole
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 callers
Function
mountFd
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 callers
Function
mountsStrict
(config *configs.Config)
libcontainer/configs/validate/validator.go:418
↓ 1 callers
Function
msMoveRoot
(rootfs string)
libcontainer/rootfs_linux.go:1189
↓ 1 callers
Function
mustExtractFd
(t *testing.T, buf []byte)
notify_socket_test.go:90
↓ 1 callers
Method
newInitProcess
(p *Process, cmd *exec.Cmd, comm *processComm)
libcontainer/container_linux.go:625
↓ 1 callers
Function
newManager
(config *cgroups.Cgroup)
tests/cmd/sd-helper/helper.go:63
↓ 1 callers
Method
newParentProcess
(p *Process)
libcontainer/container_linux.go:496
↓ 1 callers
Function
newProcess
newProcess converts [specs.Process] to [libcontainer.Process].
utils_linux.go:49
↓ 1 callers
Function
newProcessComm
()
libcontainer/process_linux.go:73
↓ 1 callers
Function
newRestoredProcess
(cmd *exec.Cmd, fds []string)
libcontainer/restored_process.go:11
↓ 1 callers
Function
newRootfs
newRootfs creates a new tmp directory and copies the busybox root filesystem to it.
libcontainer/integration/utils_test.go:99
↓ 1 callers
Method
newSetnsProcess
(p *Process, cmd *exec.Cmd, comm *processComm)
libcontainer/container_linux.go:654
↓ 1 callers
Function
newSignalHandler
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 callers
Function
newStats
()
libcontainer/intelrdt/stats.go:58
↓ 1 callers
Function
newSyncSockpair
newSyncSockpair returns a new SOCK_SEQPACKET unix socket pair to be used for runc-init synchronisation.
libcontainer/sync_unix.go:77
↓ 1 callers
Function
notifHandler
notifHandler handles seccomp notifications and responses
tests/cmd/seccompagent/seccompagent.go:169
↓ 1 callers
Function
notifyOnOOMV2
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 callers
Function
notifySocketStart
(context *cli.Context, notifySocketHost, id string)
notify_socket.go:87
↓ 1 callers
Method
orderNamespacePaths
orderNamespacePaths sorts namespace paths into a list of paths that we can setns in order.
libcontainer/container_linux.go:990
↓ 1 callers
Function
otmpfile
otmpfile creates an open(O_TMPFILE) file in the given directory (supported since Linux 3.11).
libcontainer/exeseal/cloned_binary_linux.go:86
↓ 1 callers
Function
parseBoolOrAuto
parseBoolOrAuto returns (nil, nil) if s is empty or "auto"
utils.go:124
↓ 1 callers
Function
parseIdmapData
(data []byte)
libcontainer/internal/userns/userns_maps_linux.go:23
↓ 1 callers
Function
parseMountOptions
parseMountOptions parses options and returns a configs.Mount structure with fields that depends on options set accordingly.
libcontainer/specconv/spec_linux.go:1136
↓ 1 callers
Function
parseProgram
(rdr io.Reader)
libcontainer/seccomp/patchbpf/enosys_linux.go:120
↓ 1 callers
Function
parseSignal
(rawSignal string)
kill.go:63
↓ 1 callers
Function
parseStateFds
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 callers
Method
pid
()
libcontainer/process_linux.go:130
↓ 1 callers
Function
pivotRoot
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 callers
Method
prepareCgroupFD
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 callers
Method
prepareCriuRestoreMounts
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 callers
Function
prepareImagePaths
(context *cli.Context)
checkpoint.go:83
↓ 1 callers
Function
prepareRoot
(config *configs.Config)
libcontainer/rootfs_linux.go:1098
↓ 1 callers
Function
prepareRootfs
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 callers
Function
prepareTmp
tmp has to be mounted as private to allow MS_MOVE to work in all situations
libcontainer/rootfs_linux.go:307
↓ 1 callers
Function
processEntry
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 callers
Function
procfsOpenRoot
(proc *procfs.Handle, subpath string, flags int)
internal/sys/sysctl_linux.go:14
↓ 1 callers
Function
reOpenDevNull
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 callers
Function
readArgString
(pid uint32, offset int64)
tests/cmd/seccompagent/seccompagent.go:130
↓ 1 callers
Function
readFromExecFifo
(execFifo io.Reader)
libcontainer/container_linux.go:256
↓ 1 callers
Function
readSysfsNetworkStats
Reads the specified statistics available under /sys/class/net/<EthInterface>/statistics
libcontainer/network_linux.go:81
↓ 1 callers
Function
readonlyPath
readonlyPath will make a path read only.
libcontainer/rootfs_linux.go:1263
↓ 1 callers
Method
reap
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 callers
Function
recvPidfd
(socketFile string)
tests/cmd/pidfd-kill/pidfd-kill.go:93
↓ 1 callers
Method
recvtty
(socket *os.File)
tty.go:102
↓ 1 callers
Function
registerMemoryEventV2
(cgDir, evName, cgEvName string)
libcontainer/notify_v2_linux.go:14
↓ 1 callers
Function
remapRootfs
(root string, uidMap, gidMap []specs.LinuxIDMapping)
tests/cmd/remap-rootfs/remap-rootfs.go:60
↓ 1 callers
Function
remountReadonly
remountReadonly will remount an existing mount point and ensure that it is read-only.
libcontainer/rootfs_linux.go:1285
↓ 1 callers
Function
requiresRootOrMappingTool
(c *configs.Config)
libcontainer/container_linux.go:1186
↓ 1 callers
Method
restoreNetwork
(req *criurpc.CriuReq, criuOpts *CriuOpts)
libcontainer/criu_linux.go:523
↓ 1 callers
Function
retryEAGAIN2
retryEAGAIN2 is like retryEAGAIN except it returns two values.
internal/pathrs/retry.go:56
↓ 1 callers
Function
reviseRootDir
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 callers
Function
rootfsParentMountPrivate
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 callers
Function
rootlessEUIDMappings
(config *configs.Config)
libcontainer/configs/validate/rootless.go:32
↓ 1 callers
Method
run
(pid1 int)
notify_socket.go:107
↓ 1 callers
Function
runMkdirForContainer
(pid uint32, fileName string, mode uint32, metadata string)
tests/cmd/seccompagent/seccompagent.go:149
↓ 1 callers
Function
runPoststopHooks
(c *Container)
libcontainer/state_linux.go:69
↓ 1 callers
Function
runtime_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 callers
Function
safeAllocPty
safeAllocPty returns a new (ptmx, peer pty) allocation for use inside a container.
libcontainer/console_linux.go:98
↓ 1 callers
Method
saveState
(s *State)
libcontainer/container_linux.go:837
↓ 1 callers
Function
sdNotifyBarrier
sdNotifyBarrier performs synchronization with systemd by means of the sd_notify_barrier protocol.
notify_socket.go:178
↓ 1 callers
Function
sealedOverlayfs
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 callers
Method
setExternalDescriptors
(fds []string)
libcontainer/process_linux.go:56
↓ 1 callers
Method
setFinalCPUAffinity
()
libcontainer/process_linux.go:242
↓ 1 callers
Function
setProcAttr
(attr, value string)
libcontainer/apparmor/apparmor_linux.go:30
↓ 1 callers
Function
setReadonly
()
libcontainer/rootfs_linux.go:1114
↓ 1 callers
Function
setRecAttr
(m mountEntry)
libcontainer/rootfs_linux.go:1519
↓ 1 callers
Function
setupAndMountToRootfs
setupAndMountToRootfs sets up the mount for a single mount point and mounts it to the rootfs.
libcontainer/rootfs_linux.go:114
↓ 1 callers
Function
setupDevSymlinks
(rootFd *os.File)
libcontainer/rootfs_linux.go:904
↓ 1 callers
Function
setupIO
setupIO modifies the given process config according to the options.
utils_linux.go:99
↓ 1 callers
Function
setupNetwork
setupNetwork sets up and initializes any network interface inside the container.
libcontainer/init_linux.go:558
↓ 1 callers
Method
setupNetworkDevices
setupNetworkDevices sets up and initializes any defined network interface inside the container.
libcontainer/process_linux.go:1082
↓ 1 callers
Function
setupPidfdSocket
(process *libcontainer.Process, sockpath string)
utils_linux.go:420
↓ 1 callers
Function
setupProcessPipes
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 callers
Function
setupPtmx
(rootFd *os.File)
libcontainer/rootfs_linux.go:1129
↓ 1 callers
Function
setupRoute
(config *configs.Config)
libcontainer/init_linux.go:571
↓ 1 callers
Method
setupSocketDirectory
()
notify_socket.go:83
↓ 1 callers
Function
setupSpec
setupSpec performs initial setup based on the cli.Context for the container
utils.go:71
↓ 1 callers
Method
setupSpec
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 callers
Function
setupUser
setupUser changes the groups, gid, and uid for the user inside the container.
libcontainer/init_linux.go:468
↓ 1 callers
Function
setupUserNamespace
(spec *specs.Spec, config *configs.Config)
libcontainer/specconv/spec_linux.go:1080
↓ 1 callers
Function
shouldHonorXDGRuntimeDir
()
rootless_linux.go:55
↓ 1 callers
Function
shouldUseRootlessCgroupManager
(context *cli.Context)
rootless_linux.go:13
↓ 1 callers
Function
spawnUserNamespaceCat
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 callers
Method
srcName
srcName is only meant for error messages, it returns a "friendly" name.
libcontainer/rootfs_linux.go:53
↓ 1 callers
Method
start
start starts the process execution.
libcontainer/process_linux.go:44
↓ 1 callers
Function
startInitialization
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 callers
Method
startTime
startTime returns the process start time.
libcontainer/process_linux.go:53
↓ 1 callers
Method
startWithCgroupFD
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 callers
Function
statfsToMountFlags
(st unix.Statfs_t)
libcontainer/rootfs_linux.go:505
↓ 1 callers
Function
strToRlimit
(key string)
rlimit_linux.go:28
↓ 1 callers
Function
stringToCgroupDeviceRune
(s string)
libcontainer/specconv/spec_linux.go:997
↓ 1 callers
Function
stringToDeviceRune
(s string)
libcontainer/specconv/spec_linux.go:1010
↓ 1 callers
Function
supportsIDMap
(src string)
tests/cmd/fs-idmap/fs-idmap.go:28
← previous
next →
501–600 of 959, ranked by callers