MCPcopy Create free account

hub / github.com/opencontainers/runc / functions

Functions959 in github.com/opencontainers/runc

↓ 1 callersFunctionapplyProfile
applyProfile will apply the profile with the specified name to the process after the next exec.
libcontainer/apparmor/apparmor_linux.go:62
↓ 1 callersFunctionassemble
(program []bpf.Instruction)
libcontainer/seccomp/patchbpf/enosys_linux.go:585
↓ 1 callersMethodattach
(*configs.Network)
libcontainer/network_linux.go:31
↓ 1 callersFunctionawaitFifoOpen
(path string)
libcontainer/container_linux.go:267
↓ 1 callersFunctionbail
(err error)
tests/cmd/recvtty/recvtty.go:73
↓ 1 callersFunctionchangeOnExec
changeOnExec reimplements aa_change_onexec from libapparmor in Go.
libcontainer/apparmor/apparmor_linux.go:53
↓ 1 callersFunctioncheckBindOptions
(m *configs.Mount)
libcontainer/configs/validate/validator.go:359
↓ 1 callersFunctioncheckIDMapMounts
(config *configs.Config, m *configs.Mount)
libcontainer/configs/validate/validator.go:379
↓ 1 callersFunctioncheckPtmxHandle
checkPtmxHandle checks that the given file handle points to a real dev/pts/ptmx device inode on a real devpts mount. We cannot (trivially) check that
libcontainer/console_linux.go:22
↓ 1 callersMethodcheckTerminal
(config *specs.Process)
utils_linux.go:328
↓ 1 callersFunctioncleanupTmp
(tmpdir string)
libcontainer/rootfs_linux.go:321
↓ 1 callersFunctioncloneCmd
cloneCmd creates a copy of exec.Cmd. It is needed because cmd.Start must only be used once, and go1.26 actually enforces that (see https://go-review.g
libcontainer/cmd_clone.go:17
↓ 1 callersFunctionconfigLogrus
(context *cli.Context)
main.go:194
↓ 1 callersFunctioncontainerInit
(t initType, config *initConfig, pipe *syncSocket, consoleSocket, pidfdSocket, fifoFile, logPipe *os.File)
libcontainer/init_linux.go:241
↓ 1 callersFunctionconvertHugtlb
(c cgroups.HugetlbStats)
events.go:182
↓ 1 callersFunctionconvertL3CacheInfo
(i *intelrdt.L3CacheInfo)
events.go:207
↓ 1 callersFunctionconvertMemBwInfo
(i *intelrdt.MemBwInfo)
events.go:212
↓ 1 callersFunctionconvertSecToUSec
Some systemd properties are documented as having "Sec" suffix (e.g. TimeoutStopSec) but are expected to have "USec" suffix here, so let's provide conv
libcontainer/specconv/spec_linux.go:717
↓ 1 callersFunctioncopyBusybox
copyBusybox copies the rootfs for a busybox container created for the test image into the new directory for the specific test
libcontainer/integration/utils_test.go:157
↓ 1 callersMethodcreate
(*network, int)
libcontainer/network_linux.go:28
↓ 1 callersFunctioncreateContainer
(context *cli.Context, id string, spec *specs.Spec)
utils_linux.go:183
↓ 1 callersFunctioncreateDeviceNode
Creates the device node in the rootfs of the container.
libcontainer/rootfs_linux.go:988
↓ 1 callersFunctioncreateDevices
Create the device nodes in the container.
libcontainer/rootfs_linux.go:957
↓ 1 callersMethodcreateExecFifo
()
libcontainer/container_linux.go:447
↓ 1 callersFunctioncreateLibContainerRlimit
(rlimit specs.POSIXRlimit)
spec.go:136
↓ 1 callersFunctioncreateLibcontainerMount
(cwd string, m specs.Mount)
libcontainer/specconv/spec_linux.go:641
↓ 1 callersMethodcreateNetworkInterfaces
()
libcontainer/process_linux.go:1064
↓ 1 callersFunctioncreatePidFile
createPidFile creates a file containing the PID, doing so atomically (via create and rename).
utils_linux.go:162
↓ 1 callersMethodcriuApplyCgroups
(pid int, req *criurpc.CriuReq)
libcontainer/criu_linux.go:869
↓ 1 callersMethodcriuNotifications
(resp *criurpc.CriuResp, process *Process, cmd *exec.Cmd, opts *CriuOpts, fds []string, oob []byte)
libcontainer/criu_linux.go:1111
↓ 1 callersMethoddeleteExecFifo
()
libcontainer/container_linux.go:473
↓ 1 callersMethoddetach
(*configs.Network)
libcontainer/network_linux.go:30
↓ 1 callersFunctiondevChangeNetNamespace
devChangeNetNamespace allows to move a device given by name to a network namespace given by nsPath and optionally change the device name. The device n
libcontainer/network_linux.go:113
↓ 1 callersFunctiondoSetupDev
(rootFd *os.File, config *configs.Config)
libcontainer/rootfs_linux.go:100
↓ 1 callersFunctiondoTmpfsCopyUp
(m mountEntry, mountLabel string)
libcontainer/rootfs_linux.go:436
↓ 1 callersFunctiondupFile
(f *os.File)
libcontainer/internal/userns/usernsfd_linux.go:110
↓ 1 callersFunctiondupStdio
dupStdio replaces stdio with the given peerPty.
libcontainer/console_linux.go:158
↓ 1 callersFunctionenosysPatchFilter
(config *configs.Seccomp, filter *libseccomp.ScmpFilter)
libcontainer/seccomp/patchbpf/enosys_linux.go:627
↓ 1 callersFunctionexecProcess
(context *cli.Context)
exec.go:155
↓ 1 callersMethodexecSetns
execSetns runs the process that executes C code to perform the setns calls because setns support requires the C process to fork off a child and perfor
libcontainer/process_linux.go:598
↓ 1 callersFunctionexpectBarrier
(t *testing.T, conn *net.UnixConn, notifyHostChan <-chan error)
notify_socket_test.go:55
↓ 1 callersFunctionfakeConfig
fakeConfig generates a fake libcontainer seccomp configuration. The syscalls are added with an action distinct from the default action.
libcontainer/seccomp/patchbpf/enosys_linux_test.go:71
↓ 1 callersFunctionfilterFlags
(config *configs.Seccomp, filter *libseccomp.ScmpFilter)
libcontainer/seccomp/patchbpf/enosys_linux.go:652
↓ 1 callersFunctionfinalizeRootfs
finalizeRootfs sets anything to ro if necessary. You must call prepareRootfs first.
libcontainer/rootfs_linux.go:277
↓ 1 callersFunctionfindIntelRdtMountpointDir
findIntelRdtMountpointDir returns the mount point of the Intel RDT "resource control" filesystem.
libcontainer/intelrdt/intelrdt.go:249
↓ 1 callersFunctionfindLastSyscalls
Figure out largest syscall number referenced in the filter for each architecture. We will be generating code based on the native architecture represen
libcontainer/seccomp/patchbpf/enosys_linux.go:247
↓ 1 callersFunctionfixStdioPermissions
fixStdioPermissions fixes the permissions of PID 1's STDIO within the container to the specified uid. The ownership needs to match because it is creat
libcontainer/init_linux.go:518
↓ 1 callersMethodforward
forward handles the main signal event loop forwarding, resizing, or reaping depending on the signal received.
signals.go:64
↓ 1 callersMethodforwardChildLogs
()
libcontainer/process_linux.go:57
↓ 1 callersFunctionfsmount
(ctx *os.File, flags, mountAttrs int)
libcontainer/exeseal/overlayfs_linux.go:25
↓ 1 callersFunctionfsopen
(fsName string, flags int)
libcontainer/exeseal/overlayfs_linux.go:15
↓ 1 callersFunctiongenBigEnv
(count int)
libcontainer/integration/bench_test.go:50
↓ 1 callersFunctiongenerateEnosysStub
FIXME FIXME FIXME This solution is less than ideal. In the future it would be great to have per-arch information about which syscalls were added in w
libcontainer/seccomp/patchbpf/enosys_linux.go:321
↓ 1 callersMethodgetChildPid
getChildPid receives the final child's pid over the provided pipe.
libcontainer/process_linux.go:636
↓ 1 callersFunctiongetCondition
Convert Libcontainer Arg to Libseccomp ScmpCondition
libcontainer/seccomp/seccomp_linux.go:253
↓ 1 callersFunctiongetContainers
(context *cli.Context)
list.go:113
↓ 1 callersFunctiongetDefaultImagePath
()
utils_linux.go:40
↓ 1 callersFunctiongetL3CacheInfo
Get the read-only L3 cache information
libcontainer/intelrdt/intelrdt.go:331
↓ 1 callersFunctiongetLastCmdStatus
Get diagnostics for last filesystem operation error from file info/last_cmd_status
libcontainer/intelrdt/intelrdt.go:396
↓ 1 callersFunctiongetLinuxPersonalityFromStr
getLinuxPersonalityFromStr converts the string domain received from spec to equivalent integer.
libcontainer/specconv/spec_linux.go:705
↓ 1 callersFunctiongetLogs
(t *testing.T, logread *os.File)
libcontainer/nsenter/nsenter_test.go:227
↓ 1 callersFunctiongetMemBwInfo
Get the read-only memory bandwidth information
libcontainer/intelrdt/intelrdt.go:361
↓ 1 callersFunctiongetMonFeatures
(intelRdtRoot string)
libcontainer/intelrdt/monitoring.go:20
↓ 1 callersFunctiongetNetworkInterfaceStats
Returns the network statistics for the network interfaces represented by the NetworkRuntimeInfo.
libcontainer/network_linux.go:45
↓ 1 callersFunctiongetOperator
Convert Libcontainer Operator to Libseccomp ScmpCompareOp
libcontainer/seccomp/seccomp_linux.go:231
↓ 1 callersFunctiongetPidIndex
(title string)
ps.go:92
↓ 1 callersFunctiongetProcess
(context *cli.Context, c *libcontainer.Container)
exec.go:196
↓ 1 callersFunctiongetPtyPeer
(pty console.Console, unsafePeerPath string, flags int)
libcontainer/console_linux.go:51
↓ 1 callersFunctiongetSealableFile
(comment, tmpDir string)
libcontainer/exeseal/cloned_binary_linux.go:125
↓ 1 callersMethodgetSessionRingName
()
libcontainer/setns_init_linux.go:31
↓ 1 callersMethodgetSessionRingParams
()
libcontainer/standard_init_linux.go:35
↓ 1 callersFunctiongetSubCgroupPaths
getSubCgroupPaths parses --cgroup arguments, which can either be - a single "path" argument (for cgroup v2); - one or more controller[,controller[,...
exec.go:126
↓ 1 callersFunctiongetUserHome
(uid int)
libcontainer/env.go:87
↓ 1 callersMethodgoCreateMountSources
goCreateMountSources spawns a goroutine which creates open_tree(2)-style mountfds based on the requested configs.Mount configuration. The returned req
libcontainer/process_linux.go:681
↓ 1 callersFunctionhandleInterrupt
(c console.Console)
tty.go:145
↓ 1 callersFunctionhandleNewMessage
(sockfd int)
tests/cmd/seccompagent/seccompagent.go:82
↓ 1 callersFunctionhandleNull
(path string)
tests/cmd/recvtty/recvtty.go:141
↓ 1 callersMethodhandleRestoringExternalNamespaces
(rpcOpts *criurpc.CriuOpts, extraFiles *[]*os.File, t configs.NamespaceType)
libcontainer/criu_linux.go:266
↓ 1 callersMethodhandleRestoringNamespaces
(rpcOpts *criurpc.CriuOpts, extraFiles *[]*os.File)
libcontainer/criu_linux.go:228
↓ 1 callersFunctionhandleSingle
(path string, noStdin bool)
tests/cmd/recvtty/recvtty.go:78
↓ 1 callersFunctionhaveCloseRangeCloexec
()
libcontainer/utils/utils_unix.go:26
↓ 1 callersMethodignoreCgroupError
ignoreCgroupError filters out cgroup-related errors that can be ignored, because the container is stopped and its cgroup is gone.
libcontainer/container_linux.go:115
↓ 1 callersMethodincludeExecFifo
includeExecFifo opens the container's execfifo as a pathfd, so that the container cannot access the statedir (and the FIFO itself remains un-opened).
libcontainer/container_linux.go:482
↓ 1 callersFunctioninheritStdio
(process *libcontainer.Process)
tty.go:66
↓ 1 callersMethodinitHostConsole
()
tty.go:72
↓ 1 callersMethodinitialize
(*network)
libcontainer/network_linux.go:29
↓ 1 callersMethodisCATEnabled
()
libcontainer/configs/validate/intelrdt.go:33
↓ 1 callersMethodisClosed
()
libcontainer/sync_unix.go:37
↓ 1 callersFunctionisEnabled
isEnabled returns true if apparmor is enabled for the host.
libcontainer/apparmor/apparmor_linux.go:20
↓ 1 callersMethodisEnabled
()
libcontainer/configs/validate/intelrdt.go:28
↓ 1 callersFunctionisHostNetNS
(path string)
libcontainer/configs/validate/validator.go:430
↓ 1 callersMethodisMBAEnabled
()
libcontainer/configs/validate/intelrdt.go:38
↓ 1 callersFunctionisOnTmpfs
(path string, mounts []*configs.Mount)
libcontainer/criu_linux.go:543
↓ 1 callersFunctionisPtyNoIoctlError
(err error)
libcontainer/console_linux.go:45
↓ 1 callersFunctionloadState
(root string)
libcontainer/factory_linux.go:150
↓ 1 callersFunctionlockNetwork
lockNetwork blocks any external network activity.
libcontainer/criu_linux.go:1084
↓ 1 callersFunctionmarshal
(path string, v any)
libcontainer/factory_linux_test.go:84
↓ 1 callersFunctionmaskPaths
maskPaths masks the top of the specified paths inside a container to avoid security issues from processes reading information from non-namespace aware
libcontainer/rootfs_linux.go:1334
↓ 1 callersFunctionmatchCall
Add a rule to match a single syscall
libcontainer/seccomp/seccomp_linux.go:269
↓ 1 callersFunctionmaybeClearRlimitNofileCache
(limits []configs.Rlimit)
libcontainer/init_linux.go:603
← previousnext →401–500 of 959, ranked by callers