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
syncParentHooks
syncParentHooks sends to the given pipe a JSON payload which indicates that the parent should execute pre-start hooks. It then waits for the parent to
libcontainer/init_linux.go:434
↓ 1 callers
Function
sysSeccompSetFilter
(flags uint, filter []unix.SockFilter)
libcontainer/seccomp/patchbpf/enosys_linux.go:694
↓ 1 callers
Function
syscallMode
syscallMode returns the syscall-specific mode bits from Go's portable mode bits. Copy from https://cs.opensource.google/go/go/+/refs/tags/go1.20.7:src
libcontainer/mount_linux.go:227
↓ 1 callers
Function
testEscapeJSON
(t *testing.T)
libcontainer/nsenter/test/escape.go:27
↓ 1 callers
Function
testEscapeJSONString
(t *testing.T, input, want string)
libcontainer/nsenter/test/escape.go:16
↓ 1 callers
Function
testFreeze
(t *testing.T, withSystemd, useSet bool)
libcontainer/integration/exec_test.go:443
↓ 1 callers
Function
toInodeID
(st *syscall.Stat_t)
tests/cmd/remap-rootfs/remap-rootfs.go:56
↓ 1 callers
Method
toSys
()
libcontainer/internal/userns/usernsfd_linux.go:22
↓ 1 callers
Function
traversePath
traversePath gives read+execute permissions to others for all elements in tPath below os.TempDir() and errors out if elements above it don't have read
libcontainer/integration/utils_test.go:118
↓ 1 callers
Function
unitCommand
(cmd, name, parent string)
tests/cmd/sd-helper/helper.go:70
↓ 1 callers
Function
unlockNetwork
(config *configs.Config)
libcontainer/criu_linux.go:1098
↓ 1 callers
Function
upsertWeightDevice
(devices []*cgroups.WeightDevice, wd specs.LinuxWeightDevice)
update.go:400
↓ 1 callers
Function
usage
()
tests/cmd/sd-helper/helper.go:18
↓ 1 callers
Function
verifyCwd
verifyCwd ensures that the current directory is actually inside the mount namespace root of the current process.
libcontainer/init_linux.go:273
↓ 1 callers
Method
wait
()
libcontainer/restored_process.go:47
↓ 1 callers
Method
wait
()
libcontainer/process.go:15
↓ 1 callers
Method
wait
wait waits on the process returning the process state.
libcontainer/process_linux.go:50
↓ 1 callers
Method
wait
()
libcontainer/process_linux.go:168
↓ 1 callers
Method
waitConsole
()
tty.go:153
↓ 1 callers
Method
waitForChildExit
(childPid int)
libcontainer/process_linux.go:653
↓ 1 callers
Method
waitForContainer
(container *libcontainer.Container)
notify_socket.go:99
Method
Apply
(pid int)
libcontainer/container_linux_test.go:31
Function
BenchmarkCheckPropertyName
(b *testing.B)
libcontainer/specconv/spec_linux_test.go:845
Function
BenchmarkExecInBigEnv
(b *testing.B)
libcontainer/integration/bench_test.go:70
Function
BenchmarkExecTrue
(b *testing.B)
libcontainer/integration/bench_test.go:12
Function
BenchmarkParseRealStat
(b *testing.B)
libcontainer/system/proc_test.go:138
Function
BenchmarkParseStat
(b *testing.B)
libcontainer/system/proc_test.go:118
Function
BenchmarkRootlessEUIDMount
(b *testing.B)
libcontainer/configs/validate/rootless_test.go:145
Function
BenchmarkSpawnProc
(b *testing.B)
libcontainer/internal/userns/usernsfd_linux_test.go:10
Method
Checkpoint
(criuOpts *CriuOpts)
libcontainer/criu_disabled_linux.go:13
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_unsupported.go:11
Method
Destroy
()
libcontainer/container_linux_test.go:43
Function
DeviceFromPath
DeviceFromPath takes the path to a device and its cgroup_permissions (which cannot be easily queried) to look up the information about a linux device
libcontainer/devices/device_deprecated_unix.go:32
Method
Error
Error provides a string error representation.
libcontainer/mount_linux.go:108
Method
Error
()
libcontainer/state_linux.go:29
Function
Example_container
()
libcontainer/example_test.go:25
Function
FuzzUnmarshalJSON
(data []byte)
libcontainer/configs/configs_fuzzer.go:5
Method
GetCgroups
()
libcontainer/container_linux_test.go:68
Function
GetDevices
GetDevices recursively traverses a directory specified by path and returns all devices found there. Deprecated: Use [devices.GetDevices] instead. Thi
libcontainer/devices/device_deprecated_unix.go:53
Method
GetPids
()
libcontainer/container_linux_test.go:19
Function
GetPtyPeer
GetPtyPeer is a wrapper for ioctl(TIOCGPTPEER).
libcontainer/system/linux.go:165
Method
GetStats
()
libcontainer/container_linux_test.go:27
Function
GetSubreaper
GetSubreaper returns the subreaper setting for the calling process
libcontainer/system/linux.go:79
Function
HostDevices
HostDevices returns all devices that can be found under /dev directory. Deprecated: Use [devices.HostDevices] instead. This package will be removed i
libcontainer/devices/device_deprecated_unix.go:42
Method
Init
()
libcontainer/setns_init_linux.go:35
Function
InitSeccomp
InitSeccomp installs the seccomp filters to be used in the container as specified in config. Returns the seccomp file descriptor if any of the filters
libcontainer/seccomp/seccomp_linux.go:32
Method
IsBind
()
libcontainer/configs/mount_unsupported.go:7
Function
IsEnabled
IsEnabled returns true if apparmor is enabled for the host.
libcontainer/apparmor/apparmor.go:9
Method
NotifyMemoryPressure
NotifyMemoryPressure returns a read-only channel signaling when the container reaches a given pressure level.
libcontainer/container_linux.go:818
Method
OCIState
OCIState returns the current container's state information.
libcontainer/container_linux.go:107
Function
RecvFile
RecvFile waits for a file descriptor to be sent over the given AF_UNIX socket. The file name of the remote file descriptor will be recreated locally (
libcontainer/utils/cmsg_deprecated.go:15
Method
Restore
(process *Process, criuOpts *CriuOpts)
libcontainer/criu_disabled_linux.go:9
Method
Run
(*specs.State)
libcontainer/factory_linux_test.go:95
Method
Run
Run immediately starts the process inside the container. Returns an error if the process fails to start. It does not block waiting for the exec fifo a
libcontainer/container_linux.go:214
Method
Run
Run executes all hooks for the given hook name.
libcontainer/configs/config.go:516
Method
Run
(s *specs.State)
libcontainer/configs/config.go:553
Method
Run
(s *specs.State)
libcontainer/configs/config.go:576
Function
SendFile
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
libcontainer/utils/cmsg_deprecated.go:25
Function
SendRawFd
SendRawFd sends a specific file descriptor over the given AF_UNIX socket. Deprecated: This method is deprecated and has been moved to an internal pac
libcontainer/utils/cmsg_deprecated.go:33
Method
Serialize
Serialize serializes the message. Int32msg has the following representation | nlattr len | nlattr type | | uint32 value |
libcontainer/message_linux.go:36
Method
Serialize
()
libcontainer/message_linux.go:82
Method
Set
(_ *cgroups.Resources)
libcontainer/container_linux_test.go:39
Method
String
()
libcontainer/container.go:27
Method
Syscall
()
libcontainer/configs/namespaces_syscall_unsupported.go:5
Function
TestAdditionalGroups
(t *testing.T)
libcontainer/integration/exec_test.go:385
Function
TestApply
(t *testing.T)
libcontainer/intelrdt/intelrdt_test.go:129
Function
TestBindMountAndUser
Test that a container using user namespaces is able to bind mount a folder that does not have permissions for group/others.
libcontainer/integration/exec_test.go:1769
Function
TestCGROUPHost
(t *testing.T)
libcontainer/integration/exec_test.go:1664
Function
TestCGROUPPrivate
(t *testing.T)
libcontainer/integration/exec_test.go:1644
Function
TestCgroupResourcesUnified
(t *testing.T)
libcontainer/integration/exec_test.go:604
Function
TestCgroupResourcesUnifiedErrorOnV1
(t *testing.T)
libcontainer/integration/exec_test.go:575
Function
TestCgroupResourcesUnifiedErrorOnV1Systemd
(t *testing.T)
libcontainer/integration/exec_test.go:579
Function
TestCgroupResourcesUnifiedSystemd
(t *testing.T)
libcontainer/integration/exec_test.go:608
Function
TestCheckBindMountOnProc
(t *testing.T)
libcontainer/rootfs_linux_test.go:42
Function
TestCheckCryptoFipsEnabled
(t *testing.T)
libcontainer/rootfs_linux_test.go:137
Function
TestCheckMountDestFalsePositive
(t *testing.T)
libcontainer/rootfs_linux_test.go:107
Function
TestCheckMountDestInProc
(t *testing.T)
libcontainer/rootfs_linux_test.go:11
Function
TestCheckMountDestInSys
(t *testing.T)
libcontainer/rootfs_linux_test.go:92
Function
TestCheckMountDestNsLastPid
(t *testing.T)
libcontainer/rootfs_linux_test.go:122
Function
TestCheckProcMountOnProc
(t *testing.T)
libcontainer/rootfs_linux_test.go:27
Function
TestCheckPropertyName
(t *testing.T)
libcontainer/specconv/spec_linux_test.go:820
Function
TestCheckTrickyBindMountOnProc
(t *testing.T)
libcontainer/rootfs_linux_test.go:75
Function
TestCheckTrickyMountOnProc
(t *testing.T)
libcontainer/rootfs_linux_test.go:58
Function
TestCheckpoint
(t *testing.T)
libcontainer/integration/checkpoint_test.go:23
Function
TestCommandHookRun
(t *testing.T)
libcontainer/configs/config_test.go:158
Function
TestCommandHookRunTimeout
(t *testing.T)
libcontainer/configs/config_test.go:209
Function
TestContainerState
(t *testing.T)
libcontainer/integration/exec_test.go:707
Function
TestConvertSysctlVariableToDotsSeparator
TestConvertSysctlVariableToDotsSeparator tests whether the sysctl variable can be correctly converted to a dot as a separator.
libcontainer/configs/validate/validator_test.go:268
Function
TestCpuShares
(t *testing.T)
libcontainer/integration/exec_test.go:497
Function
TestCpuSharesSystemd
(t *testing.T)
libcontainer/integration/exec_test.go:501
Function
TestCreateCommandHookTimeout
(t *testing.T)
libcontainer/specconv/spec_linux_test.go:17
Function
TestCreateDevices
(t *testing.T)
libcontainer/specconv/spec_linux_test.go:865
Function
TestCreateHooks
(t *testing.T)
libcontainer/specconv/spec_linux_test.go:32
Function
TestCreateNetDevices
(t *testing.T)
libcontainer/specconv/spec_linux_test.go:969
Function
TestCreatedStateTransition
(t *testing.T)
libcontainer/state_linux_test.go:100
Function
TestDestroy
(t *testing.T)
libcontainer/intelrdt/intelrdt_test.go:210
Function
TestDevValidName
(t *testing.T)
libcontainer/configs/validate/validator_test.go:1057
Function
TestDisassembleHugeFilterDoesNotHang
(t *testing.T)
libcontainer/seccomp/patchbpf/enosys_linux_test.go:324
Function
TestDupNamespaces
(t *testing.T)
libcontainer/specconv/spec_linux_test.go:585
Function
TestEnosysStub_MultiArch
(t *testing.T)
libcontainer/seccomp/patchbpf/enosys_linux_test.go:301
← previous
next →
601–700 of 959, ranked by callers