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
↓ 2 callers
Function
revisePidFile
(context *cli.Context)
utils.go:85
↓ 2 callers
Function
rootlessEUIDMount
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 callers
Function
scmpArchToAuditArch
(arch libseccomp.ScmpArch)
libcontainer/seccomp/patchbpf/enosys_linux.go:190
↓ 2 callers
Function
sendContainerProcessState
(listenerPath string, state *specs.ContainerProcessState, file *os.File)
libcontainer/process_linux.go:1118
↓ 2 callers
Function
setFlag
(filter *libseccomp.ScmpFilter, flag specs.LinuxSeccompFlag)
libcontainer/seccomp/seccomp_linux.go:142
↓ 2 callers
Function
setupConsole
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 callers
Function
setupIOPriority
(config *initConfig)
libcontainer/init_linux.go:641
↓ 2 callers
Function
setupMemoryPolicy
(config *configs.Config)
libcontainer/init_linux.go:670
↓ 2 callers
Function
setupPersonality
(config *configs.Config)
libcontainer/init_linux.go:678
↓ 2 callers
Function
setupPidfd
setupPidfd opens a process file descriptor of init process, and sends the file descriptor back to the socket.
libcontainer/init_linux.go:724
↓ 2 callers
Function
setupRlimits
(limits []configs.Rlimit, pid int)
libcontainer/init_linux.go:615
↓ 2 callers
Function
setupScheduler
(config *initConfig)
libcontainer/init_linux.go:624
↓ 2 callers
Method
signal
(s os.Signal)
libcontainer/container_linux.go:428
↓ 2 callers
Function
signalAllProcesses
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 callers
Function
spawnProc
(req Mapping)
libcontainer/internal/userns/usernsfd_linux.go:77
↓ 2 callers
Function
splitPath
(path string)
internal/pathrs/mkdirall.go:27
↓ 2 callers
Method
srcStat
()
libcontainer/rootfs_linux.go:60
↓ 2 callers
Method
srcStatfs
()
libcontainer/rootfs_linux.go:76
↓ 2 callers
Method
start
(process *Process)
libcontainer/container_linux.go:309
↓ 2 callers
Method
startWithCPUAffinity
Starts setns process with specified initial CPU affinity.
libcontainer/process_linux.go:215
↓ 2 callers
Function
syncParentReady
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 callers
Function
testCgroupResourcesUnified
(t *testing.T, systemd bool)
libcontainer/integration/exec_test.go:615
↓ 2 callers
Function
testCgroupResourcesUnifiedErrorOnV1
(t *testing.T, systemd bool)
libcontainer/integration/exec_test.go:586
↓ 2 callers
Function
testCheckpoint
(t *testing.T, userns bool)
libcontainer/integration/checkpoint_test.go:27
↓ 2 callers
Function
testCpuShares
(t *testing.T, systemd bool)
libcontainer/integration/exec_test.go:508
↓ 2 callers
Function
testEnosysStub
(t *testing.T, defaultAction configs.Action, arches []string)
libcontainer/seccomp/patchbpf/enosys_linux_test.go:117
↓ 2 callers
Function
testExecInRlimit
(t *testing.T, userns bool)
libcontainer/integration/execin_test.go:79
↓ 2 callers
Function
testExecPS
(t *testing.T, userns bool)
libcontainer/integration/exec_test.go:38
↓ 2 callers
Function
testFdLeaks
(t *testing.T, systemd bool)
libcontainer/integration/exec_test.go:1710
↓ 2 callers
Function
testMemoryNotification
(t *testing.T, evName string, notify notifyFunc, targ string)
libcontainer/notify_linux_test.go:16
↓ 2 callers
Function
testPidnsInitKill
(t *testing.T, config *configs.Config)
libcontainer/integration/exec_test.go:1375
↓ 2 callers
Function
testPids
(t *testing.T, systemd bool)
libcontainer/integration/exec_test.go:541
↓ 2 callers
Function
testRlimit
(t *testing.T, userns bool)
libcontainer/integration/exec_test.go:128
↓ 2 callers
Function
testUpdateDevices
(t *testing.T, systemd bool)
libcontainer/integration/update_test.go:13
↓ 2 callers
Function
toHostID
(mappings []specs.LinuxIDMapping, id uint32)
tests/cmd/remap-rootfs/remap-rootfs.go:43
↓ 2 callers
Function
truncateLogFile
(t *testing.T, file *os.File)
libcontainer/logs/logs_linux_test.go:119
↓ 2 callers
Function
tryResetCPUAffinity
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 callers
Function
validateID
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 callers
Function
verifyDevNull
(f *os.File)
libcontainer/rootfs_linux.go:1315
↓ 1 callers
Method
ApplyBoundingSet
ApplyBoundingSet sets the capability bounding set to those specified in the whitelist.
libcontainer/capabilities/capabilities.go:100
↓ 1 callers
Method
ApplyCaps
ApplyCaps sets all the capabilities for the current process in the config.
libcontainer/capabilities/capabilities.go:110
↓ 1 callers
Function
ClearKeepCaps
()
libcontainer/system/linux.go:58
↓ 1 callers
Function
ClearRlimitNofileCache
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 callers
Function
CloneBinary
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 callers
Method
CloneFlags
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 callers
Function
CloneSelfExe
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 callers
Method
ClosePostStart
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 callers
Function
ConvertStringToArch
ConvertStringToArch converts a string into a Seccomp comparison arch.
libcontainer/seccomp/config.go:100
↓ 1 callers
Function
ConvertStringToOperator
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 callers
Function
Copy
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 callers
Function
CreateInRoot
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 callers
Function
ExecutableMemfd
(comment string, flags int)
libcontainer/system/linux.go:89
↓ 1 callers
Function
FchmodFile
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 callers
Function
FchownFile
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 callers
Function
Files
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 callers
Function
FlagSupported
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 callers
Function
GetPtyPeer
GetPtyPeer is a wrapper for ioctl(TIOCGPTPEER).
internal/linux/linux.go:121
↓ 1 callers
Method
InitializeIO
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 callers
Function
IsCloned
IsCloned returns whether the given file can be guaranteed to be a safe exe.
libcontainer/exeseal/cloned_binary_linux.go:203
↓ 1 callers
Function
IsEnabled
IsEnabled checks if Intel RDT is enabled.
libcontainer/intelrdt/intelrdt.go:427
↓ 1 callers
Function
IsSelfExeCloned
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 callers
Function
KnownActions
KnownActions returns the list of the known actions. Used by `runc features`.
libcontainer/seccomp/config.go:46
↓ 1 callers
Function
KnownArchs
KnownArchs returns the list of the known archs. Used by `runc features`.
libcontainer/seccomp/config.go:73
↓ 1 callers
Function
KnownCapabilities
KnownCapabilities returns the list of the known capabilities. Used by `runc features`.
libcontainer/capabilities/capabilities.go:38
↓ 1 callers
Function
KnownFlags
KnownFlags returns the list of the known filter flags. Used by `runc features`.
libcontainer/seccomp/config.go:117
↓ 1 callers
Function
KnownHookNames
KnownHookNames returns the known hook names. Used by `runc features`.
libcontainer/configs/config.go:445
↓ 1 callers
Function
KnownMemoryPolicyFlags
KnownMemoryPolicyFlags returns the list of the known memory policy mode flags. Used by `runc features`.
libcontainer/specconv/spec_linux.go:215
↓ 1 callers
Function
KnownMemoryPolicyModes
KnownMemoryPolicyModes returns the list of the known memory policy modes. Used by `runc features`.
libcontainer/specconv/spec_linux.go:208
↓ 1 callers
Function
KnownMountOptions
KnownMountOptions returns the list of the known mount options. Used by `runc features`.
libcontainer/specconv/spec_linux.go:187
↓ 1 callers
Function
KnownNamespaces
KnownNamespaces returns the list of the known namespaces. Used by `runc features`.
libcontainer/specconv/spec_linux.go:175
↓ 1 callers
Function
KnownOperators
KnownOperators returns the list of the known operations. Used by `runc features`.
libcontainer/seccomp/config.go:28
↓ 1 callers
Function
Memfd
Memfd creates a sealable executable memfd (supported since Linux 3.17).
libcontainer/exeseal/cloned_binary_linux.go:66
↓ 1 callers
Function
ModKeyringPerm
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 callers
Method
NotifyOOM
NotifyOOM returns a read-only channel signaling when the container receives an OOM notification.
libcontainer/container_linux.go:804
↓ 1 callers
Function
PatchAndLoad
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 callers
Function
ProcPidOpen
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 callers
Function
ProcSelfOpen
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 callers
Method
ReadPacket
()
libcontainer/sync_unix.go:45
↓ 1 callers
Function
Readlinkat
Readlinkat wraps [unix.Readlinkat].
internal/linux/linux.go:102
↓ 1 callers
Function
Recvfrom
Recvfrom wraps [unix.Recvfrom].
internal/linux/linux.go:58
↓ 1 callers
Method
Restore
()
libcontainer/system/linux.go:17
↓ 1 callers
Function
SchedSetaffinity
SchedSetaffinity wraps sched_setaffinity syscall without unix.CPUSet size limitation.
internal/linux/linux.go:70
↓ 1 callers
Method
Set
()
libcontainer/system/linux.go:31
↓ 1 callers
Method
SetDefaultEnv
SetDefaultEnv sets the environment for those CommandHook entries that do not have one set.
libcontainer/configs/config.go:529
↓ 1 callers
Function
SetKeepCaps
()
libcontainer/system/linux.go:50
↓ 1 callers
Function
SetLinuxPersonality
SetLinuxPersonality sets the Linux execution personality. For more information see the personality syscall documentation. checkout getLinuxPersonality
libcontainer/system/linux.go:156
↓ 1 callers
Function
SetMempolicy
SetMempolicy wraps set_mempolicy.
internal/linux/linux.go:94
↓ 1 callers
Function
SetParentDeathSignal
(sig uintptr)
libcontainer/system/linux.go:35
↓ 1 callers
Function
SetSubreaper
SetSubreaper sets the value i as the subreaper setting for the calling process
libcontainer/system/linux.go:74
↓ 1 callers
Method
Signal
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 callers
Method
String
()
libcontainer/system/kernelversion/kernel_linux.go:41
↓ 1 callers
Function
SupportedFlags
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 callers
Function
ToSchedAttr
ToSchedAttr is to convert *configs.Scheduler to *unix.SchedAttr.
libcontainer/configs/config.go:250
↓ 1 callers
Function
UnlinkInRoot
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 callers
Method
WritePacket
(b []byte)
libcontainer/sync_unix.go:41
↓ 1 callers
Function
WriteSysctls
WriteSysctls sets the given sysctls to the requested values.
internal/sys/sysctl_linux.go:25
↓ 1 callers
Method
addIntoCgroup
()
libcontainer/process_linux.go:356
↓ 1 callers
Method
addIntoCgroupV1
()
libcontainer/process_linux.go:259
↓ 1 callers
Method
addIntoCgroupV2
()
libcontainer/process_linux.go:322
↓ 1 callers
Method
addMaskPaths
(req *criurpc.CriuReq)
libcontainer/criu_linux.go:127
← previous
next →
301–400 of 959, ranked by callers